diff options
author | Urbain Vaes <urbain@vaes.uk> | 2019-10-30 13:15:32 +0000 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2019-10-30 13:15:32 +0000 |
commit | 2ceab4a7b7f91087475ab2370b880e1759b72c85 (patch) | |
tree | 10d4f374c3197b2d2b0ca6e8639bfbc08a40da77 /zsh/.zshenv | |
parent | 26a8fff66ed8e996e60dd8ee896a23b49e860796 (diff) |
Fix zsh error
Diffstat (limited to 'zsh/.zshenv')
-rw-r--r-- | zsh/.zshenv | 5 |
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" |