blob: afe95fc08cc3229f7a212d52a5ea374d483317ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#compdef off
typeset -a arguments
typeset expl
arguments=(
'--force[shutdown a server]'
'-n[simulate]'
'-r[reboot]'
':place:_off_places'
)
function _off_places {
if [[ ! -d ~/packages/places ]] {
return 1
}
_wanted place expl place \
compadd $(ls -1 ~/packages/places/etc)
}
_arguments -s $arguments
|