[zsh] Update shell init: rc
This commit is contained in:
parent
b09d523218
commit
c30b46a88b
26 changed files with 479 additions and 462 deletions
25
zsh/func/init_zsh_functions
Normal file
25
zsh/func/init_zsh_functions
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env zsh
|
||||
# Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
autoload load_module
|
||||
|
||||
function init_zsh_functions
|
||||
{
|
||||
local myfpath="$HOME/.zsh/func"
|
||||
|
||||
shell-log "Loading functions in $myfpath"
|
||||
for func in $myfpath/*; do
|
||||
[[ ! -e "$func" || -d "$func" ]] && continue
|
||||
|
||||
local functionName=`basename $func`
|
||||
[[ "$functionName" =~ "prompt_*" ]] && continue
|
||||
[[ "$functionName" =~ "init_*" ]] && continue
|
||||
|
||||
shell-log -l debug "Loading $functionName"
|
||||
autoload +X $functionName
|
||||
done
|
||||
|
||||
load_module makers
|
||||
}
|
||||
|
||||
init_zsh_functions "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue