diff options
author | Andrew Dwyer <andrewrdwyer@gmail.com> | 2015-05-09 14:33:01 +0930 |
---|---|---|
committer | Andrew Dwyer <andrewrdwyer@gmail.com> | 2015-05-09 14:33:01 +0930 |
commit | de769058b9bb846cdbda8eadfde7ebc1bad3993d (patch) | |
tree | 36946e63f4c3742543a06d21dc398f3311015348 /plugins/n98-magerun/n98-magerun.plugin.zsh | |
parent | 00b2cc653421c1465f7596f22c19d21f42aa0396 (diff) | |
download | zsh-de769058b9bb846cdbda8eadfde7ebc1bad3993d.tar.gz zsh-de769058b9bb846cdbda8eadfde7ebc1bad3993d.tar.bz2 zsh-de769058b9bb846cdbda8eadfde7ebc1bad3993d.zip |
Fix awk command. \s only working in gawk
Diffstat (limited to 'plugins/n98-magerun/n98-magerun.plugin.zsh')
-rwxr-xr-x | plugins/n98-magerun/n98-magerun.plugin.zsh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/n98-magerun/n98-magerun.plugin.zsh b/plugins/n98-magerun/n98-magerun.plugin.zsh index e4b0d6885..3a29f39b3 100755 --- a/plugins/n98-magerun/n98-magerun.plugin.zsh +++ b/plugins/n98-magerun/n98-magerun.plugin.zsh @@ -7,7 +7,7 @@ # 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.phar --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z\-:]+/ { print $1 }' } _n98_magerun () { @@ -15,9 +15,10 @@ _n98_magerun () { } compdef _n98_magerun n98-magerun.phar +compdef _n98_magerun n98-magerun # Aliases -alias n98-magerun='n98-magerun.phar' +alias n98='n98-magerun.phar' alias mage='n98-magerun.phar' alias magefl='n98-magerun.phar cache:flush' |