mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-02-20 15:18:05 +00:00
Fixed bash config
This commit is contained in:
14
dot_bashrc
14
dot_bashrc
@@ -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 ---
|
||||||
|
|||||||
Reference in New Issue
Block a user