diff options
author | Johannes Winkelmann <jw@smts.ch> | 2006-02-23 15:26:10 +0000 |
---|---|---|
committer | Johannes Winkelmann <jw@smts.ch> | 2006-02-23 15:26:10 +0000 |
commit | bdea7e6c6a535e57a07d376a3139d0788efaaa41 (patch) | |
tree | 1a7334c99fa39b1ad1a7a35c113b18cb0d92413c /bash-completion | |
download | opt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.gz opt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.xz |
create branch for 2.2
Diffstat (limited to 'bash-completion')
-rw-r--r-- | bash-completion/.footprint | 7 | ||||
-rw-r--r-- | bash-completion/.md5sum | 2 | ||||
-rw-r--r-- | bash-completion/Pkgfile | 15 | ||||
-rw-r--r-- | bash-completion/README | 5 | ||||
-rw-r--r-- | bash-completion/init_bc | 23 |
5 files changed, 52 insertions, 0 deletions
diff --git a/bash-completion/.footprint b/bash-completion/.footprint new file mode 100644 index 000000000..a8a85ed09 --- /dev/null +++ b/bash-completion/.footprint @@ -0,0 +1,7 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/bash-completion/ +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/bash-completion/ +-rw-r--r-- root/root usr/share/bash-completion/bash_completion +-rwxr-xr-x root/root usr/share/bash-completion/init_bc diff --git a/bash-completion/.md5sum b/bash-completion/.md5sum new file mode 100644 index 000000000..36b3dbd42 --- /dev/null +++ b/bash-completion/.md5sum @@ -0,0 +1,2 @@ +08e5321ead7079c84822368d7a41deda bash-completion-20050721.tar.gz +cee11381ec9d2dbe72e5c9d568bafa73 init_bc diff --git a/bash-completion/Pkgfile b/bash-completion/Pkgfile new file mode 100644 index 000000000..2713cf043 --- /dev/null +++ b/bash-completion/Pkgfile @@ -0,0 +1,15 @@ +# Maintainer: Johannes Winkelmann, jw at tks6 dot net +# URL: http://www.caliban.org/bash/index.shtml#completion +# Description: Bash completion functions + +name=bash-completion +version=20050721 +release=1 +source=(http://www.caliban.org/files/bash/$name-$version.tar.gz init_bc) + +build() { + mkdir -p $PKG/usr/share/bash-completion + cp bash_completion/bash_completion $PKG/usr/share/bash-completion + install -m 0755 init_bc $PKG/usr/share/bash-completion + install -d -m 0755 $PKG/usr/lib/bash-completion +} diff --git a/bash-completion/README b/bash-completion/README new file mode 100644 index 000000000..c3fde1ff8 --- /dev/null +++ b/bash-completion/README @@ -0,0 +1,5 @@ +POST-INSTALL: +put the following line in your ~/.bashrc: + . /usr/share/bash-completion/init_bc + +You can put additional init code into ~/.bash_completion diff --git a/bash-completion/init_bc b/bash-completion/init_bc new file mode 100644 index 000000000..14f67d90b --- /dev/null +++ b/bash-completion/init_bc @@ -0,0 +1,23 @@ +#!/bin/sh +export BASH_COMPLETION=/usr/share/bash-completion/bash_completion +bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} +if [ "$PS1" ] && [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] \ + && [ -f "$BASH_COMPLETION" ]; then # interactive shell + # Source completion code + . $BASH_COMPLETION +fi + +# also support bash v3... +if [ "$PS1" ] && [ $bmajor -eq 3 ] && [ -f "$BASH_COMPLETION" ]; then + # interactive shell + . $BASH_COMPLETION +fi + +unset bash bmajor bminor + +files=`find /usr/lib/bash-completion/ -type f` +if [ ! "$files" = "" ]; then + for f in /usr/lib/bash-completion/*; do + . $f + done +fi |