diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:58:34 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:58:34 +0000 |
commit | cafc065f34cf096ac112e74bbb72f2f9074474cd (patch) | |
tree | 2c3ccb48364b79a2a12fed86fa521031ba6c411a /Completion/Unix/Command | |
parent | 914c0655e9ada009a44abfaa5a896c4124d6e988 (diff) | |
download | zsh-cafc065f34cf096ac112e74bbb72f2f9074474cd.tar.gz zsh-cafc065f34cf096ac112e74bbb72f2f9074474cd.tar.xz zsh-cafc065f34cf096ac112e74bbb72f2f9074474cd.zip |
moved from Completion/User/_ncftp
Diffstat (limited to 'Completion/Unix/Command')
-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 |