mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 15:20:08 +00:00
Fix awk command. \s only working in gawk
This commit is contained in:
parent
00b2cc6534
commit
de769058b9
1 changed files with 3 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
# n98-magerun basic command completion
|
# n98-magerun basic command completion
|
||||||
_n98_magerun_get_command_list () {
|
_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 () {
|
_n98_magerun () {
|
||||||
|
@ -15,9 +15,10 @@ _n98_magerun () {
|
||||||
}
|
}
|
||||||
|
|
||||||
compdef _n98_magerun n98-magerun.phar
|
compdef _n98_magerun n98-magerun.phar
|
||||||
|
compdef _n98_magerun n98-magerun
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
alias n98-magerun='n98-magerun.phar'
|
alias n98='n98-magerun.phar'
|
||||||
alias mage='n98-magerun.phar'
|
alias mage='n98-magerun.phar'
|
||||||
alias magefl='n98-magerun.phar cache:flush'
|
alias magefl='n98-magerun.phar cache:flush'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue