From 731914ec825c3661418d0a8b84fb19ce1a42d258 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 21 May 2024 11:17:12 -0400 Subject: environment.d parsing changed? fixit --- dot_config/environment.d/01_PATH.conf | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'dot_config/environment.d/01_PATH.conf') diff --git a/dot_config/environment.d/01_PATH.conf b/dot_config/environment.d/01_PATH.conf index 104fba4..2d43e7a 100644 --- a/dot_config/environment.d/01_PATH.conf +++ b/dot_config/environment.d/01_PATH.conf @@ -1,16 +1,9 @@ PATH="${PATH:-/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games}" -for dir in \ - "/usr/games" \ - "/usr/sbin" \ - "/sbin" \ - "${HOME}/.cabal/bin" \ - "${HOME}/.cargo/bin" \ - "${HOME}/bin"; do - case :$PATH: in - *:${dir}:*) - # ${dir} already in PATH - ;; - *) - PATH="${dir}:${PATH}";; - esac -done +PATH="/usr/games:${PATH}" +PATH="/usr/sbin:${PATH}" +PATH="/sbin:${PATH}" +PATH="${HOME}/.opam/default/bin:${PATH}" +PATH="${HOME}/.opam/beluga/bin:${PATH}" +PATH="${HOME}/.cabal/bin:${PATH}" +PATH="${HOME}/.cargo/bin:${PATH}" +PATH="${HOME}/bin:${PATH}" -- cgit v1.2.3