aboutsummaryrefslogtreecommitdiffstats
path: root/.zsh.after
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2021-09-28 20:59:49 +0200
committerDavid Runge <dave@sleepmap.de>2021-09-28 20:59:49 +0200
commitf661c7c210bd901191c6d6c63011d3df696f3f24 (patch)
treeaa982f633218c16c79423c348d0c17262feebba7 /.zsh.after
parentd3e5ca4b8e0ce50de7d617b4e1078122ec171028 (diff)
downloaddotfiles-f661c7c210bd901191c6d6c63011d3df696f3f24.tar.gz
dotfiles-f661c7c210bd901191c6d6c63011d3df696f3f24.tar.bz2
dotfiles-f661c7c210bd901191c6d6c63011d3df696f3f24.tar.xz
dotfiles-f661c7c210bd901191c6d6c63011d3df696f3f24.zip
zsh: move path definitions
.zsh.before/path.zsh -> .zsh.after/path.zsh: Move path definitions to 'after' location.
Diffstat (limited to '.zsh.after')
-rw-r--r--.zsh.after/path.zsh19
1 files changed, 19 insertions, 0 deletions
diff --git a/.zsh.after/path.zsh b/.zsh.after/path.zsh
new file mode 100644
index 0000000..21e36e6
--- /dev/null
+++ b/.zsh.after/path.zsh
@@ -0,0 +1,19 @@
+# cargo
+[ -d "${HOME}/.cargo/bin" ] && PATH="${HOME}/.cargo/bin:${PATH}"
+# pyenv
+[ -d "${HOME}/.local/bin" ] && PATH="${HOME}/.local/bin:${PATH}"
+[ -d "${HOME}/.pyenv/shims" ] && PATH="${HOME}/.pyenv/shims:${PATH}"
+# RPi
+[ -d "/opt/vc/bin" ] && PATH="${PATH}:/opt/vc/bin"
+[ -d "/opt/vc/sbin" ] && PATH="${PATH}:/opt/vc/sbin"
+# user bin
+[ -d "${HOME}/bin" ] && PATH="${HOME}/bin:${PATH}"
+# Debilian
+[ -d "/usr/sbin" ] && [ ! -L "/usr/sbin" ] && PATH="${PATH}:/usr/sbin"
+# whackOS
+[ -d "/usr/local/opt/coreutils/libexec/gnubin" ] && PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
+[ -d "/usr/local/opt/gnu-sed/libexec/gnubin" ] && PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
+[ -d "/usr/local/opt/gnu-tar/libexec/gnubin" ] && PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"
+[ -d "/usr/local/opt/gnu-which/libexec/gnubin" ] && PATH="/usr/local/opt/gnu-which/libexec/gnubin:$PATH"
+[ -d "/usr/local/opt/findutils/libexec/gnubin" ] && PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"
+[ -d "/usr/local/opt/grep/libexec/gnubin" ] && PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"