[Bash-completion-commits] [SCM] bash-completion branch, master, updated. eced7126a30bb62c49924f0b2dc61f0131317c00
Guillaume Rousse
guillomovitch at zarb.org
Sun May 17 20:13:21 UTC 2009
The following commit has been merged in the master branch:
commit 8226742c71451f4988e4d525b1eeaf877383661f
Author: Guillaume Rousse <guillomovitch at zarb.org>
Date: Sun May 17 22:04:53 2009 +0200
split lftp completion
diff --git a/bash_completion b/bash_completion
index 5b3bc44..49c7941 100644
--- a/bash_completion
+++ b/bash_completion
@@ -3969,25 +3969,6 @@ _openssl()
complete -F _openssl $default openssl
}
-# lftp(1) bookmark completion
-#
-have lftp &&
-_lftp()
-{
- local cur
-
- COMPREPLY=()
- cur=`_get_cword`
-
- if [ $COMP_CWORD -eq 1 ] && [ -f ~/.lftp/bookmarks ]; then
- COMPREPLY=( $( compgen -W '$( sed -ne "s/^\(.*\)'$'\t''.*$/\1/p" \
- ~/.lftp/bookmarks )' -- $cur ) )
- fi
-
- return 0
-} &&
-complete -F _lftp $default lftp
-
# gdb(1) completion
#
have gdb &&
diff --git a/contrib/lftp b/contrib/lftp
new file mode 100644
index 0000000..9a53200
--- /dev/null
+++ b/contrib/lftp
@@ -0,0 +1,21 @@
+# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
+# ex: ts=8 sw=8 noet filetype=sh
+#
+# bash completion for lftp
+
+have lftp &&
+_lftp()
+{
+ local cur
+
+ COMPREPLY=()
+ cur=`_get_cword`
+
+ if [ $COMP_CWORD -eq 1 ] && [ -f ~/.lftp/bookmarks ]; then
+ COMPREPLY=( $( compgen -W '$( sed -ne "s/^\(.*\)'$'\t''.*$/\1/p" \
+ ~/.lftp/bookmarks )' -- $cur ) )
+ fi
+
+ return 0
+} &&
+complete -F _lftp $default lftp
--
bash-completion
More information about the Bash-completion-commits
mailing list