Moved path variables to single-source-of-truth

This commit is contained in:
2026-02-18 15:45:02 +00:00
parent 02e1560abc
commit b9be5b146c
5 changed files with 24 additions and 33 deletions
+9 -14
View File
@@ -30,20 +30,15 @@ export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_us=$'\e[00;36m'
export LESS_TERMCAP_ue=$'\e[0m'
path_prepend() {
if [ -d "$1" ]; then
export PATH="$1:$PATH"
fi
}
path_prepend "/opt/miniconda3/bin"
path_prepend "/nix/var/nix/profiles/default/bin"
path_prepend "$HOME/.nix-profile/bin"
path_prepend "$HOME/.ghcup/bin"
path_prepend "$HOME/.poetry/bin"
path_prepend "$HOME/.cargo/bin"
path_prepend "$HOME/.local/bin"
unset -f path_prepend
if [ -f ~/.config/path.env ]; then
while read -r line; do
[[ -z "$line" || "$line" == #* ]] && continue
p=$(eval echo "$line")
if [ -d "$p" ]; then
export PATH="$p:$PATH"
fi
done < ~/.config/path.env
fi
# --- Aliases ---
# Modern Unix Replacements