aboutsummaryrefslogtreecommitdiff
path: root/dot_config/environment.d/01_PATH.conf
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2024-05-21 23:03:48 -0400
committerRyan Kavanagh <rak@rak.ac>2024-05-21 23:03:48 -0400
commit6e96177632c76eee65ce9fbbde6e6fd0a18dbb21 (patch)
tree8b8e934e239c4f9084c29af1080db9b1d7fa34e1 /dot_config/environment.d/01_PATH.conf
parentrak-meta 0.8 (diff)
parentdrop rendundant check (diff)
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to '')
-rw-r--r--dot_config/environment.d/01_PATH.conf23
1 files changed, 8 insertions, 15 deletions
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}"