zsh: unalias safely (lol gonna have to merge cause I wrote it twice)
This commit is contained in:
parent
0db510dc09
commit
e85505af7c
1 changed files with 6 additions and 3 deletions
9
.zshrc
9
.zshrc
|
@ -59,7 +59,8 @@ ${SKIP_PLUGINS:-false} || {
|
|||
|
||||
## Theme
|
||||
# terminal colors
|
||||
#zinit snippet 'https://github.com/chriskempson/base16-shell/blob/master/scripts/base16-onedark.sh'
|
||||
[ -f "$SHELL_CONFIG_DIR/colors.sh" ] ||
|
||||
zinit snippet 'https://github.com/chriskempson/base16-shell/blob/master/scripts/base16-onedark.sh'
|
||||
|
||||
# LS Colors
|
||||
zinit ice atclone"dircolors -b ./src/dir_colors > colors.zsh" \
|
||||
|
@ -77,8 +78,10 @@ ${SKIP_PLUGINS:-false} || {
|
|||
# clear plugin options set at the start of this block
|
||||
unalias zinit
|
||||
|
||||
# just gonna sneak this in here too
|
||||
alias zi > /dev/null && unalias zi zpl zini zplg which-command run-help fsh-alias
|
||||
# (safely) delete a bunch of aliases I don't use
|
||||
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