about summary refs log tree commit diff
path: root/Completion/Unix/Command/_ncftp
blob: 93de404aa9bbd00d0815104322871cefd7581683 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#compdef ncftp lftp

local expl 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