[zsh] Update shell init; use ZSH autoloaded functions instead of a bunch of files

This commit is contained in:
Eryn Wells 2021-12-31 10:27:27 -08:00
parent 2b584f97cf
commit b09d523218
13 changed files with 208 additions and 138 deletions

13
zsh/func/append_to_path Normal file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env zsh
# vim:ft=zsh:
# Eryn Wells <eryn@erynwells.me>
function append_to_path
{
if [[ -d "$1" ]]; then
path+="$1"
export path
fi
}
append_to_path "$@"