mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
Merge pull request #1942 from dongweiming/update-powify
Update powify for displayed parameter is not enough, and when there is no directory error
This commit is contained in:
commit
027c9ee4cd
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
#compdef powify
|
#compdef powify
|
||||||
|
|
||||||
_powify_all_servers() {
|
_powify_all_servers() {
|
||||||
all_servers=(`ls $HOME/.pow/`)
|
all_servers=(`ls $HOME/.pow/ 2>/dev/null`)
|
||||||
}
|
}
|
||||||
|
|
||||||
local -a all_servers
|
local -a all_servers
|
||||||
|
@ -30,7 +30,7 @@ fi
|
||||||
|
|
||||||
case "$words[1]" in
|
case "$words[1]" in
|
||||||
server)
|
server)
|
||||||
_values \
|
_values , \
|
||||||
'install[install pow server]' \
|
'install[install pow server]' \
|
||||||
'reinstall[reinstall pow server]' \
|
'reinstall[reinstall pow server]' \
|
||||||
'update[update pow server]' \
|
'update[update pow server]' \
|
||||||
|
@ -45,7 +45,7 @@ case "$words[1]" in
|
||||||
'config[print the current server configuration]' \
|
'config[print the current server configuration]' \
|
||||||
'logs[tails the pow server logs]' ;;
|
'logs[tails the pow server logs]' ;;
|
||||||
utils)
|
utils)
|
||||||
_values \
|
_values , \
|
||||||
'install[install powify.dev server management tool]' \
|
'install[install powify.dev server management tool]' \
|
||||||
'reinstall[reinstall powify.dev server management tool]' \
|
'reinstall[reinstall powify.dev server management tool]' \
|
||||||
'uninstall[uninstall powify.dev server management tool]' ;;
|
'uninstall[uninstall powify.dev server management tool]' ;;
|
||||||
|
|
Loading…
Reference in a new issue