diff options
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_ncftp | 11 |
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 |