mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-06-06 20:52:02 +01:00
Moved path variables to single-source-of-truth
This commit is contained in:
+9
-14
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user