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
c45fff1f
Commit
c45fff1f
authored
Aug 13, 2015
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2367 from andrew-dwyer/n98-magerun
New plugin for the n98-magerun Magento command line tool
parents
d1ea849f
2449e412
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
n98-magerun.plugin.zsh
plugins/n98-magerun/n98-magerun.plugin.zsh
+34
-0
No files found.
plugins/n98-magerun/n98-magerun.plugin.zsh
0 → 100755
View file @
c45fff1f
# ------------------------------------------------------------------------------
# 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
()
{
$_comp_command1
--no-ansi
|
sed
"1,/Available commands/d"
|
awk
'/^ +[a-z\-:]+/ { print $1 }'
}
_n98_magerun
()
{
_arguments
'1: :->command'
'*:optional arg:_files'
case
$state
in
command
)
compadd
$(
_n98_magerun_get_command_list
)
;;
*
)
esac
}
compdef _n98_magerun n98-magerun.phar
compdef _n98_magerun n98-magerun
# Aliases
alias
n98
=
'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