zsh: don't remove aliases that don't already exist
This commit is contained in:
parent
4c9ab664f4
commit
807dd358c9
1 changed files with 4 additions and 2 deletions
6
.zshrc
6
.zshrc
|
@ -76,8 +76,10 @@ ${SKIP_PLUGINS:-false} || {
|
||||||
# clear plugin options set at the start of this block
|
# clear plugin options set at the start of this block
|
||||||
unalias zinit
|
unalias zinit
|
||||||
|
|
||||||
# just gonna sneak this in here too
|
# delete aliases added by zinit and zsh that I don't care about
|
||||||
alias zi > /dev/null && unalias zi zpl zini zplg which-command run-help fsh-alias
|
unaliases(){ for A in "$@";do alias "$A" > /dev/null && unalias "$A";done; }
|
||||||
|
unaliases zi zpl zini zplg which-command run-help fsh-alias
|
||||||
|
unset -f unaliases
|
||||||
}
|
}
|
||||||
# <<<
|
# <<<
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue