This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/plugins/pow/_pow

21 lines
341 B
Plaintext
Raw Normal View History

2011-08-30 23:16:15 -04:00
#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"