From f661c7c210bd901191c6d6c63011d3df696f3f24 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 28 Sep 2021 20:59:49 +0200 Subject: zsh: move path definitions .zsh.before/path.zsh -> .zsh.after/path.zsh: Move path definitions to 'after' location. --- .zsh.after/path.zsh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .zsh.after/path.zsh (limited to '.zsh.after') 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" -- cgit v1.2.3-54-g00ecf