1
# bash completion for ncftp
9
_get_comp_words_by_ref cur
11
if [[ $COMP_CWORD -eq 1 && -f ~/.ncftp/bookmarks ]]; then
12
COMPREPLY=( $( compgen -W '$( sed -ne "s/^\([^,]\{1,\}\),.*$/\1/p" \
13
~/.ncftp/bookmarks )' -- "$cur" ) )
18
complete -F _ncftp -o default ncftp
23
# sh-indent-comment: t
24
# indent-tabs-mode: nil
26
# ex: ts=4 sw=4 et filetype=sh