mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-02-20 07:08:03 +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_ue=$'\e[0m'
|
||||
|
||||
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"
|
||||
if [ -f "$HOME/.config/path.env" ]; then
|
||||
while IFS= read -r line || [[ -n "$line" ]]; do
|
||||
[[ "$line" =~ ^#.*$ || -z "$line" ]] && continue
|
||||
expanded_path="${line/#\~/$HOME}"
|
||||
if [ -d "$expanded_path" ]; then
|
||||
export PATH="$expanded_path:$PATH"
|
||||
fi
|
||||
done < ~/.config/path.env
|
||||
done < "$HOME/.config/path.env"
|
||||
fi
|
||||
|
||||
# --- Aliases ---
|
||||
|
||||
Reference in New Issue
Block a user