mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Cleaned up the plugins.
This commit is contained in:
parent
422307c3ca
commit
90e7debc30
66 changed files with 902 additions and 1774 deletions
20
plugins/pow/_pow
Normal file
20
plugins/pow/_pow
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#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"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue