19 lines
586 B
Bash
19 lines
586 B
Bash
|
|
# Deduplicate PATH entries automatically
|
|
typeset -U PATH
|
|
|
|
# Load PATH from ~/.env for all shell invocations (interactive + non-interactive)
|
|
if [[ -f ~/.env ]]; then
|
|
while IFS= read -r line; do
|
|
if [[ "$line" == PATH=* ]]; then
|
|
path_value="${line#PATH=}"
|
|
expanded_path=$(eval echo "$path_value")
|
|
PATH="$expanded_path:$PATH"
|
|
fi
|
|
done < ~/.env
|
|
fi
|
|
|
|
# Begin added by argcomplete
|
|
fpath=( /home/jojo/.local/share/pipx/venvs/ansible/lib/python3.12/site-packages/argcomplete/bash_completion.d "${fpath[@]}" )
|
|
# End added by argcomplete
|