[zsh] Bring back init-env-tilde-paths

Apparently it was load bearing
This commit is contained in:
Eryn Wells 2024-09-26 16:19:28 -07:00
parent 71cf2d52f6
commit 734ab0a7a5
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#!/usr/bin/env zsh
# Eryn Wells <eryn@erynwells.me>
function init-env-tilde-paths
{
for candidate_code_path in \
"$HOME/Code" \
"$HOME/Developer" \
"$HOME/Documents/Code"
do
if [[ ! -d "$candidate_code_path" ]]; then
continue
fi
c="$candidate_code_path"
break
done
}
init-env-tilde-paths "$@"

1
zshenv
View file

@ -30,6 +30,7 @@ autoload -Uz do_init_functions
typeset -a zsh_init_env_functions=( \
init-env \
init-env-path \
init-env-tilde-paths \
init-env-python \
init-env-playdate \
init-env-vi \