about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:58:34 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:58:34 +0000
commitcafc065f34cf096ac112e74bbb72f2f9074474cd (patch)
tree2c3ccb48364b79a2a12fed86fa521031ba6c411a /Completion
parent914c0655e9ada009a44abfaa5a896c4124d6e988 (diff)
downloadzsh-cafc065f34cf096ac112e74bbb72f2f9074474cd.tar.gz
zsh-cafc065f34cf096ac112e74bbb72f2f9074474cd.tar.xz
zsh-cafc065f34cf096ac112e74bbb72f2f9074474cd.zip
moved from Completion/User/_ncftp
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_ncftp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_ncftp b/Completion/Unix/Command/_ncftp
new file mode 100644
index 000000000..64f2aee31
--- /dev/null
+++ b/Completion/Unix/Command/_ncftp
@@ -0,0 +1,11 @@
+#compdef ncftp lftp
+
+local bookmarks=$HOME/.$service/bookmarks
+
+if [[ -f $bookmarks ]]; then
+  bookmarks=(${"${(f)$(<$bookmarks)}"%%[[:space:],]*})
+  [[ $service == ncftp ]] && shift 2 bookmarks  
+  _wanted bookmarks expl bookmark compadd -a bookmarks && return 0
+fi
+
+_hosts