diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-12-14 18:42:22 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-12-14 18:42:22 +0000 |
commit | f23b94ea709323b6e52365ab1def0aa901f510f6 (patch) | |
tree | 81faca21edfc62e309ef99f38b229c2ae25c88ec /Shell | |
parent | 51c373b3cb889ed5e3e62898911a342875dcf28e (diff) | |
download | dotfiles-f23b94ea709323b6e52365ab1def0aa901f510f6.tar.gz dotfiles-f23b94ea709323b6e52365ab1def0aa901f510f6.tar.bz2 dotfiles-f23b94ea709323b6e52365ab1def0aa901f510f6.zip |
Ensure opam env is only run if opam is installed
Diffstat (limited to 'Shell')
-rw-r--r-- | Shell/.zshrc | 3 |
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 |