From 084da522460a9316f888887b7f30e08fa18dcca1 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Sat, 19 Sep 2020 22:23:11 +0200 Subject: [PATCH] use exa if available --- .zshrc.local | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.zshrc.local b/.zshrc.local index cf8014c..543a9f8 100644 --- a/.zshrc.local +++ b/.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"