about summary refs log tree commit diff
diff options
context:
space:
mode:
-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