add exa aliasses

This commit is contained in:
Philip Henning 2023-09-09 00:03:52 +02:00
parent a4c83f4258
commit 21e3780b8b
2 changed files with 32 additions and 0 deletions

View file

@ -20,6 +20,22 @@ export ANSIBLE_NOCOWS=1
# Include $(go env GOPATH) to PATH
[[ $(command -v go) ]] && [[ -d "$(go env GOPATH)/bin" ]] && export PATH="$(go env GOPATH)/bin:${PATH}"
# exa
if [[ $(command -v exa) ]]; then
[[ $(whence -w l) == *alias* ]] && unalias l
lfunc() {
exal -T -L ${1:-1}
}
[[ $(whence -w la) == *alias* ]] && unalias la
lafunc() {
exal -a -T -L ${1:-1}
}
alias exal="exa -l -F -g -h --extended --git --group-directories-first --icons"
alias l='lfunc'
alias la='lafunc'
alias ll="lfunc 2"
fi
{%@@ if profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'yoetunheimr' or profile == 'ymir' @@%}
# Connect to windows ssh pageant
# https://github.com/BlackReloaded/wsl2-ssh-pageant

View file

@ -158,6 +158,22 @@ source ${ZSH}/oh-my-zsh.sh
alias ssh-no-check="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
# exa
if [[ $(command -v exa) ]]; then
[[ $(whence -w l) == *alias* ]] && unalias l
lfunc() {
exal -T -L ${1:-1}
}
[[ $(whence -w la) == *alias* ]] && unalias la
lafunc() {
exal -a -T -L ${1:-1}
}
alias exal="exa -l -F -g -h --extended --git --group-directories-first --icons"
alias l='lfunc'
alias la='lafunc'
alias ll="lfunc 2"
fi
# Initialize pyenv
[[ $(command -v pyenv) ]] && export PYENV_ROOT="$HOME/.pyenv"
[[ $(command -v pyenv) ]] && command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"