blob: a5f880c4040633d2efedc93ced535179911526dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# bash completion for Portsnap -*- shell-script -*-
[[ $OSTYPE == *freebsd* ]] || return 1
_comp_cmd_portsnap()
{
local cur prev words cword comp_args
_comp_initialize -- "$@" || return
case $prev in
-d | -p)
_comp_compgen_filedir -d
return
;;
-l | -f)
_comp_compgen_filedir
return
;;
esac
_comp_compgen -- -W "fetch cron extract update"
} &&
complete -F _comp_cmd_portsnap portsnap
# ex: filetype=sh
|