mirror of
https://github.com/notwa/rc
synced 2024-11-05 00:39:02 -08:00
add "nocorrect" to ignored words in wat
This commit is contained in:
parent
ee14017d06
commit
3e088817d3
1 changed files with 1 additions and 1 deletions
2
sh/wat
2
sh/wat
|
@ -14,7 +14,7 @@ wat() { ### @-
|
|||
for cmd; do
|
||||
if (( $+aliases[$cmd] )); then
|
||||
printf '%s: aliased to %s\n' $cmd $aliases[$cmd]
|
||||
local -a words=(${${(z)aliases[$cmd]}:#(*=*|rlwrap|noglob|command)})
|
||||
local -a words=(${${(z)aliases[$cmd]}:#(*=*|rlwrap|nocorrect|noglob|command)})
|
||||
unalias $cmd
|
||||
if [[ $words[1] == '\'* ]]; then
|
||||
words[1]=${words[1]#'\'}
|
||||
|
|
Loading…
Reference in a new issue