[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-235-g26ae770

Igor Murzov igor at gplsoft.org
Mon May 2 10:27:18 UTC 2011


The following commit has been merged in the master branch:
commit 52f5dee24fcd969dcc19128e4139f737ad86d4fb
Author: Igor Murzov <igor at gplsoft.org>
Date:   Sun Jul 25 19:53:11 2010 +0400

    Remove duplicate check for slackware

diff --git a/contrib/slackware b/contrib/slackware
index 58dcd08..db519e5 100644
--- a/contrib/slackware
+++ b/contrib/slackware
@@ -1,6 +1,9 @@
 # bash completion for various Slackware specific tools
 
-have rpm2tgz && [ -f /etc/slackware-version ] &&
+[ -f /etc/slackware-version ] &&
+{
+
+have rpm2tgz && 
 _rpm2tgz()
 {
     COMPREPLY=()
@@ -13,7 +16,7 @@ _rpm2tgz()
     COMPREPLY=( $(compgen -f -X "!*.rpm" -- "$cur") )
 } && complete -F _rpm2tgz -o plusdirs rpm2tgz rpm2targz
 
-have slapt-get && [ -f /etc/slackware-version ] &&
+have slapt-get &&
 _slapt-get()
 {
     COMPREPLY=()
@@ -80,3 +83,5 @@ _slapt-get()
             ;;
     esac
 } && complete -F _slapt-get slapt-get
+
+}

-- 
bash-completion



More information about the Bash-completion-commits mailing list