Ensure opam env is only run if opam is installed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user