Fixed bash config

This commit is contained in:
2026-02-18 15:50:37 +00:00
parent b9be5b146c
commit b123e9322e

View File

@@ -30,14 +30,14 @@ export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_us=$'\e[00;36m' export LESS_TERMCAP_us=$'\e[00;36m'
export LESS_TERMCAP_ue=$'\e[0m' export LESS_TERMCAP_ue=$'\e[0m'
if [ -f ~/.config/path.env ]; then if [ -f "$HOME/.config/path.env" ]; then
while read -r line; do while IFS= read -r line || [[ -n "$line" ]]; do
[[ -z "$line" || "$line" == #* ]] && continue [[ "$line" =~ ^#.*$ || -z "$line" ]] && continue
p=$(eval echo "$line") expanded_path="${line/#\~/$HOME}"
if [ -d "$p" ]; then if [ -d "$expanded_path" ]; then
export PATH="$p:$PATH" export PATH="$expanded_path:$PATH"
fi fi
done < ~/.config/path.env done < "$HOME/.config/path.env"
fi fi
# --- Aliases --- # --- Aliases ---