remove unwanted aliases

This commit is contained in:
psox 2020-10-29 10:26:36 +00:00
parent 6b6ae7fb9c
commit a67e9cf359
1 changed files with 4 additions and 0 deletions

4
zshrc
View File

@ -281,6 +281,10 @@ precmd() {
fi
}
# Remove unwanted aliases
( where fd | grep -E '\/s?bin\/fd' ) && alias fd &>/dev/null && unalias fd
# Clean up global aliases
source <(alias -g | awk -F= '/^[A-Za-z]+/{print $1}' | xargs -I{} -n1 echo unalias "'{}'")