de769058b9bb846cdbda8eadfde7ebc1bad3993d

Author
Andrew Dwyer <andrewrdwyer@gmail.com>
Committer
Andrew Dwyer <andrewrdwyer@gmail.com>
Date

Message

Fix awk command. \s only working in gawk

Diff

 1diff --git a/plugins/n98-magerun/n98-magerun.plugin.zsh b/plugins/n98-magerun/n98-magerun.plugin.zsh
 2index e4b0d68854139700d08aad20fc6a40be15320dd5..3a29f39b343ea63ac54d7c9845dade5e9570a96e 100755
 3--- a/plugins/n98-magerun/n98-magerun.plugin.zsh
 4+++ b/plugins/n98-magerun/n98-magerun.plugin.zsh
 5@@ -7,7 +7,7 @@
 6 
 7 # n98-magerun basic command completion
 8 _n98_magerun_get_command_list () {
 9-  n98-magerun.phar --no-ansi | sed "1,/Available commands/d" | awk '/^\s+[a-z]+/ { print $1 }'
10+  n98-magerun.phar --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z\-:]+/ { print $1 }'
11 }
12 
13 _n98_magerun () {
14@@ -15,9 +15,10 @@ _n98_magerun () {
15 }
16 
17 compdef _n98_magerun n98-magerun.phar
18+compdef _n98_magerun n98-magerun
19 
20 # Aliases
21-alias n98-magerun='n98-magerun.phar'
22+alias n98='n98-magerun.phar'
23 alias mage='n98-magerun.phar'
24 alias magefl='n98-magerun.phar cache:flush'
25