PageRenderTime 175ms CodeModel.GetById 173ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion_lib/complete -o default/lftp

http://github.com/brinkman83/bashrc
#! | 19 lines | 12 code | 7 blank | 0 comment | 0 complexity | 3b8e022becebb911a5dfda9de260d66d MD5 | raw file
 1comp_include _get_cword
 2
 3
 4_lftp()
 5{
 6    local cur
 7
 8    COMPREPLY=()
 9    cur=`_get_cword`
10
11    if [ $COMP_CWORD -eq 1 ] && [ -f ~/.lftp/bookmarks ]; then
12        COMPREPLY=( $( compgen -W '$( sed -ne "s/^\(.*\)'$'\t''.*$/\1/p" \
13               ~/.lftp/bookmarks )' -- $cur ) )
14    fi
15
16    return 0
17} # _lftp()
18
19