Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
3726c495
Commit
3726c495
authored
Apr 08, 2013
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1680 from zbrox/master
Powify autocomplete
parents
eadca724
8d6b7573
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
_powify
plugins/powify/_powify
+55
-0
No files found.
plugins/powify/_powify
0 → 100644
View file @
3726c495
#compdef powify
_powify_all_servers() {
all_servers=(`ls $HOME/.pow/`)
}
local -a all_servers
local -a _1st_arguments
_1st_arguments=(
'server:server specific commands'
'utils:manage powify'
'create:creates a pow app from the current directory (to change the name append name as an argument)'
'destroy:destroys the pow app linked to the current directory'
'restart:restarts the pow app linked to the current directory'
'always_restart:reload the pow app after each request'
'always_restart_off:do not reload the pow app after each request'
'rename:rename the current pow app to [NAME] or renmae [OLD] to [NEW]'
'environment:run the this pow app in a different environment (aliased `env`)'
'browse:opens and navigates the default browser to this app'
'logs:tail the application logs'
)
_arguments '*:: :->command'
if (( CURRENT == 1 )); then
_describe -t commands "powify command" _1st_arguments
return
fi
case "$words[1]" in
server)
_values \
'install[install pow server]' \
'reinstall[reinstall pow server]' \
'update[update pow server]' \
'uninstall[uninstall pow server]' \
'list[list all pow apps]' \
'start[start the pow server]' \
'stop[stop the pow server]' \
'restart[restart the pow server]' \
'host[adds all pow apps to /etc/hosts file]' \
'unhost[removes all pow apps from /etc/hosts file]' \
'status[print the current server status]' \
'config[print the current server configuration]' \
'logs[tails the pow server logs]' ;;
utils)
_values \
'install[install powify.dev server management tool]' \
'reinstall[reinstall powify.dev server management tool]' \
'uninstall[uninstall powify.dev server management tool]' ;;
destroy|restart|always_restart|always_restart_off|rename|browse|logs)
_powify_all_servers
_wanted all_servers expl 'all pow servers' compadd -a all_servers ;;
esac
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment