summaryrefslogtreecommitdiff
path: root/zsh/.zshenv
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2019-09-30 10:40:19 +0100
committerUrbain Vaes <urbain@vaes.uk>2019-09-30 10:40:19 +0100
commitdb630d6c575f081291fed42431f97a19ef8e7a8c (patch)
treed4047ab1be20a173f2489f4e4a94c416f49465ba /zsh/.zshenv
parentba4b9190ae731096694cbdd747242fd3e79ba913 (diff)
Add correct ~/.gem to PATH
Diffstat (limited to 'zsh/.zshenv')
-rw-r--r--zsh/.zshenv8
1 files changed, 5 insertions, 3 deletions
diff --git a/zsh/.zshenv b/zsh/.zshenv
index 20066b6..d29e014 100644
--- a/zsh/.zshenv
+++ b/zsh/.zshenv
@@ -2,8 +2,11 @@ export EDITOR=nvim
export VISUAL=nvim
# Export PATH without repetitions
-export -U PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:$HOME/.local/bin:$HOME/.gem/ruby/2.5.0/bin${PATH:+:}$PATH"
-export PATH="/home/urbain/.config/guix/current/bin${PATH:+:}$PATH"
+export -U PATH="/home/urbain/.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"
# Python startup file
[[ -f "$HOME/.pythonrc" ]] && export PYTHONSTARTUP="$HOME/.pythonrc"
@@ -11,4 +14,3 @@ export PATH="/home/urbain/.config/guix/current/bin${PATH:+:}$PATH"
# Source guix profile
guix_profile=$HOME/.guix-env
[[ -f $guix_profile ]] && . $guix_profile
-