[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-235-g26ae770
Igor Murzov
igor at gplsoft.org
Mon May 2 10:26:59 UTC 2011
The following commit has been merged in the master branch:
commit 89356d0728a26cfd635b2b31128881a28f5e3bd0
Author: Igor Murzov <igor at gplsoft.org>
Date: Sun Jul 4 17:48:09 2010 +0400
Add completion for rpm2tgz
diff --git a/contrib/slackware b/contrib/slackware
new file mode 100644
index 0000000..190ad84
--- /dev/null
+++ b/contrib/slackware
@@ -0,0 +1,14 @@
+# bash completion for various Slackware specific tools
+
+have rpm2tgz && [ -f /etc/slackware-version ] &&
+_rpm2tgz()
+{
+ COMPREPLY=()
+ local cur="${COMP_WORDS[COMP_CWORD]}"
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $( compgen -W '-s -S -n -r -d' -- "$cur" ) )
+ return 0
+ fi
+
+ COMPREPLY=( $(compgen -f -X "!*.rpm" -- "$cur") )
+} && complete -F _rpm2tgz -o plusdirs rpm2tgz rpm2targz
--
bash-completion
More information about the Bash-completion-commits
mailing list