aboutsummaryrefslogtreecommitdiffstats
path: root/packages/bash-completion
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/bash-completion
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
downloadopenembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.gz
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.bz2
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.zip
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/bash-completion')
-rw-r--r--packages/bash-completion/.mtn2git_empty0
-rw-r--r--packages/bash-completion/files/.mtn2git_empty0
-rw-r--r--packages/bash-completion/files/bash_completion.sh12
3 files changed, 12 insertions, 0 deletions
diff --git a/packages/bash-completion/.mtn2git_empty b/packages/bash-completion/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/bash-completion/.mtn2git_empty
diff --git a/packages/bash-completion/files/.mtn2git_empty b/packages/bash-completion/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/bash-completion/files/.mtn2git_empty
diff --git a/packages/bash-completion/files/bash_completion.sh b/packages/bash-completion/files/bash_completion.sh
index e69de29bb2..09715211c0 100644
--- a/packages/bash-completion/files/bash_completion.sh
+++ b/packages/bash-completion/files/bash_completion.sh
@@ -0,0 +1,12 @@
+# check for bash
+[ -z "$BASH_VERSION" ] && return
+
+bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
+if [ "$PS1" ] && [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] \
+ && [ -f /etc/bash_completion ]; then # interactive shell
+ # Source completion code
+ . /etc/bash_completion
+fi
+
+unset bash bmajor bminor
+