diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 6387fda..b79416a 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -8,7 +8,7 @@ bindkey "^[3;5~" delete-char # Command completion autoload -U compinit -compinit -d "$COMPDIR/.zcompdump" +[ -f "$COMPDIR/.zcompdump" ] && compinit -d "$COMPDIR/.zcompdump" # Prompt if [ -f "/usr/bin/liquidprompt" ]; then @@ -60,7 +60,7 @@ hash zoxide 2>/dev/null && eval "$(zoxide init zsh)" # # Example: # sudo archlinux-java set java-13-openjdk -export JAVA_HOME="/usr/lib/jvm/default" +[ -d "/usr/lib/jvm/default" ] && export JAVA_HOME="/usr/lib/jvm/default" # Exit with a success status true