1
0
Fork 0

unset all aliases before setting any user alias

This was notorious to detect but `command -v ls` would return
"alias ls='ls --color=tty'" because (on NixOS), '/etc/bashrc' has an
alias set for 'ls'. I already have custom aliases that are "more fancy",
so unset all such aliases.
This commit is contained in:
Pratham Patel 2023-08-31 15:29:01 +05:30
parent 0c55791e14
commit 429b6d02b8
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@
# The above directive disables https://www.shellcheck.net/wiki/SC2139
dash "${HOME}/.local/scripts/other-common-scripts/alacritty-import.sh"
unalias -a
if [[ "$(uname)" == 'Linux' ]]; then
GNU_LS="$(command -v ls)"
GNU_GREP="$(command -v grep)"