aboutsummaryrefslogtreecommitdiff
path: root/Shell/.zshrc
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-12-14 18:42:22 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-12-14 18:42:22 +0000
commitf23b94ea709323b6e52365ab1def0aa901f510f6 (patch)
tree81faca21edfc62e309ef99f38b229c2ae25c88ec /Shell/.zshrc
parent51c373b3cb889ed5e3e62898911a342875dcf28e (diff)
downloaddotfiles-f23b94ea709323b6e52365ab1def0aa901f510f6.tar.gz
dotfiles-f23b94ea709323b6e52365ab1def0aa901f510f6.tar.bz2
dotfiles-f23b94ea709323b6e52365ab1def0aa901f510f6.zip
Ensure opam env is only run if opam is installed
Diffstat (limited to 'Shell/.zshrc')
-rw-r--r--Shell/.zshrc3
1 files changed, 3 insertions, 0 deletions
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