updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / castor-client / bash-completion
blobe598ee652067a41e1d504e03ace9fd635fb2a5f3
1 _castor()
3         local cur cur_d castor_dirs
4         COMPREPLY=()
5  
6         cur="${COMP_WORDS[COMP_CWORD]}"
7         cur_d="${cur%/*}"
9         castor_dirs=$(nsls "$cur_d" 2> /dev/null|while read f; do echo "$cur_d/$f"; done)
11         COMPREPLY=( $(compgen -f "$cur") $(compgen -W "/castor $castor_dirs" -- "$cur") )
14 complete -o filenames -o nospace -F _castor nsls rfcat rfchmod rfcomm rfcp rfdir rfmkdir rfrename rfrm rfstat