mirror of
https://github.com/shokinn/.files.git
synced 2025-01-19 05:22:25 +00:00
add exa aliasses
This commit is contained in:
parent
a4c83f4258
commit
21e3780b8b
|
@ -20,6 +20,22 @@ export ANSIBLE_NOCOWS=1
|
||||||
# Include $(go env GOPATH) to PATH
|
# Include $(go env GOPATH) to PATH
|
||||||
[[ $(command -v go) ]] && [[ -d "$(go env GOPATH)/bin" ]] && export PATH="$(go env GOPATH)/bin:${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' @@%}
|
{%@@ if profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'yoetunheimr' or profile == 'ymir' @@%}
|
||||||
# Connect to windows ssh pageant
|
# Connect to windows ssh pageant
|
||||||
# https://github.com/BlackReloaded/wsl2-ssh-pageant
|
# https://github.com/BlackReloaded/wsl2-ssh-pageant
|
||||||
|
|
|
@ -158,6 +158,22 @@ source ${ZSH}/oh-my-zsh.sh
|
||||||
|
|
||||||
alias ssh-no-check="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
|
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
|
# Initialize pyenv
|
||||||
[[ $(command -v pyenv) ]] && export PYENV_ROOT="$HOME/.pyenv"
|
[[ $(command -v pyenv) ]] && export PYENV_ROOT="$HOME/.pyenv"
|
||||||
[[ $(command -v pyenv) ]] && command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
[[ $(command -v pyenv) ]] && command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
|
|
Loading…
Reference in a new issue