From d834e901e47a9e4637d8c16f8b75f61e5a576cea Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Mon, 10 Jun 2024 10:56:41 -0400 Subject: [PATCH] update PATH logic --- configs/.zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/.zshrc b/configs/.zshrc index 905ff9a..1c941fd 100644 --- a/configs/.zshrc +++ b/configs/.zshrc @@ -16,8 +16,10 @@ # Configure default binary and library paths export GOPATH="$HOME/go" -export PATH="$EWCONFIG_ROOT/scripts:$HOME/bin:$GOPATH/bin:$HOME/.local/bin:$PATH" +export PATH="$EWCONFIG_ROOT/scripts:$HOME/bin:$HOME/.local/bin:$PATH" export LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib64:$LD_LIBRARY_PATH" +[[ -s "$GOPATH/bin" ]] && export PATH="$GOPATH/bin:$PATH" +[[ -s "$HOME/.docker/bin" ]] && export PATH="$HOME/.docker/bin" [[ -f "$EWCONFIG_ROOT/configs/python/python_startup.py" ]] && export PYTHONSTARTUP="$EWCONFIG_ROOT/configs/python/python_startup.py" # Display operating system and architecture information @@ -250,3 +252,4 @@ export SDKMAN_DIR="$HOME/.sdkman" [[ -s "$HOME/pkg/flutter/bin" ]] && export PATH="$HOME/pkg/flutter/bin:$PATH" [[ -s "$HOME/.rye/env" ]] && source "$HOME/.rye/env" [[ -s "/opt/homebrew/bin/brew" ]] && eval "$(/opt/homebrew/bin/brew shellenv)" +. "$HOME/.cargo/env"