portsnap: New completion.
This commit is contained in:
parent
0b7d92cf2b
commit
c3770c1798
@ -261,6 +261,7 @@ bashcomp_DATA = 2to3 \
|
|||||||
pm-is-supported \
|
pm-is-supported \
|
||||||
pm-powersave \
|
pm-powersave \
|
||||||
portinstall \
|
portinstall \
|
||||||
|
portsnap \
|
||||||
portupgrade \
|
portupgrade \
|
||||||
postcat \
|
postcat \
|
||||||
postconf \
|
postconf \
|
||||||
|
25
completions/portsnap
Normal file
25
completions/portsnap
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# bash completion for Portsnap -*- shell-script -*-
|
||||||
|
|
||||||
|
[[ $OSTYPE == *freebsd* ]] || return 1
|
||||||
|
|
||||||
|
_portsnap()
|
||||||
|
{
|
||||||
|
local cur prev words cword
|
||||||
|
_init_completion || return
|
||||||
|
|
||||||
|
case $prev in
|
||||||
|
-d|-p)
|
||||||
|
_filedir -d
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
-l|-f)
|
||||||
|
_filedir
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
COMPREPLY=( $(compgen -W "fetch cron extract update" -- $cur) )
|
||||||
|
} &&
|
||||||
|
complete -F _portsnap portsnap
|
||||||
|
|
||||||
|
# ex: ts=4 sw=4 et filetype=sh
|
Loading…
x
Reference in New Issue
Block a user