From 9846fcab7103f996bc949221b94e2d222739950d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 18:42:25 +0100 Subject: [PATCH] Add missing tests --- .config/zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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