dotfiles/zshrc: check if asdf.sh exists

This exists on Arch, but not if I'm running the dotfiles on some
random server.
This commit is contained in:
Alan Orth 2022-08-31 19:16:45 +03:00
parent dd44606a6f
commit 144e015223
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,9 @@ if [[ "$OSTYPE" =~ ^linux.*$ ]]; then
fi
# Enable asdf version manager zsh completions
. /opt/asdf-vm/asdf.sh
if [[ -f /opt/asdf-vm/asdf.sh ]]; then
. /opt/asdf-vm/asdf.sh
fi
alias ls='ls -F --color=auto'
alias less='less -R' # preserves colors in GNU coreutils' `less`