You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
341 B
21 lines
341 B
14 years ago
|
#compdef pow-add pow-remove pow-restart
|
||
|
#autoload
|
||
|
|
||
|
local ret=1
|
||
|
|
||
|
case "$service" in
|
||
|
(pow-add)
|
||
|
_arguments "1:application:_files -/" && ret=0
|
||
|
;;
|
||
|
(pow-(remove|restart))
|
||
|
_arguments "1: :->pow-app" && ret=0
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
if [[ "$state" == 'pow-app' ]]; then
|
||
|
_arguments '1:application:($HOME/.pow/*(@N:t))' && ret=0
|
||
|
fi
|
||
|
|
||
|
return "$ret"
|
||
|
|