1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 08:51:18 +02:00
zsh/Completion/Unix/Command/_ncftp

12 lines
280 B
Plaintext
Raw Normal View History

2001-04-02 13:58:34 +02:00
#compdef ncftp lftp
local expl bookmarks=$HOME/.$service/bookmarks
2001-04-02 13:58:34 +02:00
if [[ -f $bookmarks ]]; then
bookmarks=(${"${(f)$(<$bookmarks)}"%%[[:space:],]*})
[[ $service == ncftp ]] && shift 2 bookmarks
_wanted bookmarks expl bookmark compadd -a bookmarks && return 0
fi
_hosts