[zsh] Update shell init; use ZSH autoloaded functions instead of a bunch of files
This commit is contained in:
parent
2b584f97cf
commit
b09d523218
13 changed files with 208 additions and 138 deletions
13
zsh/func/append_to_path
Normal file
13
zsh/func/append_to_path
Normal 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 "$@"
|
Loading…
Add table
Add a link
Reference in a new issue