mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-15 02:51:11 +00:00
21 lines
341 B
Plaintext
21 lines
341 B
Plaintext
|
#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"
|
||
|
|