From f23b94ea709323b6e52365ab1def0aa901f510f6 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 14 Dec 2024 18:42:22 +0000 Subject: Ensure opam env is only run if opam is installed --- Shell/.zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Shell/.zshrc b/Shell/.zshrc index 3c43a67..838f233 100644 --- a/Shell/.zshrc +++ b/Shell/.zshrc @@ -127,6 +127,9 @@ export NVM_DIR="$HOME/.nvm" export SDKMAN_DIR="/home/oreo/.sdkman" [[ -s "/home/oreo/.sdkman/bin/sdkman-init.sh" ]] && source "/home/oreo/.sdkman/bin/sdkman-init.sh" +if command -v opam 2>&1 >/dev/null +then eval $(opam env) +fi [ -f "/home/oreo/.ghcup/env" ] && . "/home/oreo/.ghcup/env" # ghcup-env -- cgit v1.2.3-13-gbd6f