Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
00b2cc65
Commit
00b2cc65
authored
Dec 21, 2013
by
Andrew Dwyer
Browse files
New plugin for the n98-magerun Magento command line tool
parent
a38af279
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/n98-magerun/n98-magerun.plugin.zsh
0 → 100755
View file @
00b2cc65
# ------------------------------------------------------------------------------
# FILE: n98-magerun.plugin.zsh
# DESCRIPTION: oh-my-zsh n98-magerun plugin file. Adapted from composer plugin
# AUTHOR: Andrew Dwyer (andrewrdwyer at gmail dot com)
# VERSION: 1.0.0
# ------------------------------------------------------------------------------
# n98-magerun basic command completion
_n98_magerun_get_command_list
()
{
n98-magerun.phar
--no-ansi
|
sed
"1,/Available commands/d"
|
awk
'/^\s+[a-z]+/ { print $1 }'
}
_n98_magerun
()
{
compadd
`
_n98_magerun_get_command_list
`
}
compdef _n98_magerun n98-magerun.phar
# Aliases
alias
n98-magerun
=
'n98-magerun.phar'
alias
mage
=
'n98-magerun.phar'
alias
magefl
=
'n98-magerun.phar cache:flush'
# Install n98-magerun into the current directory
alias
mage-get
=
'wget https://raw.github.com/netz98/n98-magerun/master/n98-magerun.phar'
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