1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 00:29:02 -08:00

add "nocorrect" to ignored words in wat

This commit is contained in:
Connor Olding 2021-09-25 04:08:09 -07:00
parent ee14017d06
commit 3e088817d3

2
sh/wat
View file

@ -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]#'\'}