From 144e0152233965b27fd1cfc351e1a435fcfa2eaf Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 31 Aug 2022 19:16:45 +0300 Subject: [PATCH] dotfiles/zshrc: check if asdf.sh exists This exists on Arch, but not if I'm running the dotfiles on some random server. --- dotfiles/zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 82c7d3d..90f166e 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -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`