feat: add .zsh_aliases and source from .zshrc
This commit is contained in:
18
.zshenv
Normal file
18
.zshenv
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
# 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
|
||||
Reference in New Issue
Block a user