summaryrefslogtreecommitdiff
path: root/zsh/.zshenv
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/.zshenv')
-rw-r--r--zsh/.zshenv5
1 files changed, 4 insertions, 1 deletions
diff --git a/zsh/.zshenv b/zsh/.zshenv
index eabf2f4..7917e82 100644
--- a/zsh/.zshenv
+++ b/zsh/.zshenv
@@ -4,11 +4,14 @@ export VISUAL=nvim
# Export PATH without repetitions
export -U PATH="$HOME/.local/bin${PATH:+:}$PATH"
export -U PATH="$HOME/.config/guix/current/bin${PATH:+:}$PATH"
-export -U PATH=$(echo "$HOME/.gem/ruby/"*"/bin")"${PATH:+:}$PATH"
export -U PATH="/usr/local/sbin${PATH:+:}$PATH"
export -U PATH="/usr/bin${PATH:+:}$PATH"
export -U PATH="/usr/local/sbin:/usr/local/bin${PATH:+:}$PATH"
+if [[ -d "$HOME/.gem/ruby" ]]; then
+ export -U PATH=$(echo "$HOME/.gem/ruby/"*"/bin")"${PATH:+:}$PATH"
+fi
+
# Python startup file
[[ -f "$HOME/.pythonrc" ]] && export PYTHONSTARTUP="$HOME/.pythonrc"