use exa if available

This commit is contained in:
Johannes Loher 2020-09-19 22:23:11 +02:00
parent 3596acfbb0
commit 084da52246

View file

@ -3,7 +3,20 @@ export EDITOR=/usr/bin/vim
export BROWSER=/usr/bin/firefox export BROWSER=/usr/bin/firefox
# Aliases # Aliases
alias .2='cd ../..'
alias .3='cd ../../..'
alias .4='cd ../../../..'
alias .5='cd ../../../../..'
if hash exa 2>/dev/null
then
alias ls='exa --color=automatic'
else
alias ls='ls --color=auto' alias ls='ls --color=auto'
fi
alias ll='ls -l'
alias la='ls -a'
alias lla='ls -al'
# Colors # Colors
eval `dircolors $HOME/.dir_colors` eval `dircolors $HOME/.dir_colors`
@ -39,8 +52,9 @@ then
. /usr/share/fzf/completion.zsh . /usr/share/fzf/completion.zsh
fi fi
# SSH agent
eval `keychain --quiet --agents ssh --eval` eval `keychain --quiet --agents ssh --eval`
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! # SDKMAN!
export SDKMAN_DIR="$HOME/.sdkman" export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" [[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"