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
# Aliases
alias ls='ls --color=auto'
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'
fi
alias ll='ls -l'
alias la='ls -a'
alias lla='ls -al'
# Colors
eval `dircolors $HOME/.dir_colors`
@ -39,8 +52,9 @@ then
. /usr/share/fzf/completion.zsh
fi
# SSH agent
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"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"