remove not required unlias commands

This commit is contained in:
Philip Henning 2023-09-09 19:59:26 +02:00
parent 21e3780b8b
commit b853f45327
2 changed files with 2 additions and 4 deletions

View file

@ -22,11 +22,9 @@ export ANSIBLE_NOCOWS=1
# exa # exa
if [[ $(command -v exa) ]]; then if [[ $(command -v exa) ]]; then
[[ $(whence -w l) == *alias* ]] && unalias l
lfunc() { lfunc() {
exal -T -L ${1:-1} exal -T -L ${1:-1}
} }
[[ $(whence -w la) == *alias* ]] && unalias la
lafunc() { lafunc() {
exal -a -T -L ${1:-1} exal -a -T -L ${1:-1}
} }
@ -34,6 +32,7 @@ if [[ $(command -v exa) ]]; then
alias l='lfunc' alias l='lfunc'
alias la='lafunc' alias la='lafunc'
alias ll="lfunc 2" alias ll="lfunc 2"
alias lla='lafunc 2'
fi fi
{%@@ if profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'yoetunheimr' or profile == 'ymir' @@%} {%@@ if profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'yoetunheimr' or profile == 'ymir' @@%}

View file

@ -160,11 +160,9 @@ alias ssh-no-check="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/n
# exa # exa
if [[ $(command -v exa) ]]; then if [[ $(command -v exa) ]]; then
[[ $(whence -w l) == *alias* ]] && unalias l
lfunc() { lfunc() {
exal -T -L ${1:-1} exal -T -L ${1:-1}
} }
[[ $(whence -w la) == *alias* ]] && unalias la
lafunc() { lafunc() {
exal -a -T -L ${1:-1} exal -a -T -L ${1:-1}
} }
@ -172,6 +170,7 @@ if [[ $(command -v exa) ]]; then
alias l='lfunc' alias l='lfunc'
alias la='lafunc' alias la='lafunc'
alias ll="lfunc 2" alias ll="lfunc 2"
alias lla='lafunc 2'
fi fi
# Initialize pyenv # Initialize pyenv