summary refs log tree commit diff
path: root/Completion/User/_ncftp
blob: 64f2aee319c0e48a3989f78724f82464a17a4398 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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