use exa if available
This commit is contained in:
parent
3596acfbb0
commit
084da52246
1 changed files with 16 additions and 2 deletions
18
.zshrc.local
18
.zshrc.local
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue