From 2ceab4a7b7f91087475ab2370b880e1759b72c85 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 30 Oct 2019 13:15:32 +0000 Subject: Fix zsh error --- zsh/.zshenv | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'zsh/.zshenv') 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" -- cgit v1.2.3