2021-10-20 13:06:01 +00:00
|
|
|
# shellcheck shell=zsh
|
2021-10-20 13:27:30 +00:00
|
|
|
|
|
|
|
{{- if (eq .cluster "scinet") -}}
|
|
|
|
# Workaround for SCINet admins clobbering fpath
|
|
|
|
ZEXECDIR=$(dirname $(command -v zsh))
|
|
|
|
if [ -d $ZEXECDIR/../share/zsh/functions ]; then
|
|
|
|
fpath+=$(realpath $ZEXECDIR/../share/zsh/functions)
|
|
|
|
else
|
|
|
|
for ZSHAREDIR in $ZEXECDIR/../share/zsh/*; do
|
|
|
|
if [ -d $ZSHAREDIR/functions ]; then
|
|
|
|
fpath+=$(realpath $ZSHAREDIR/functions)
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
{{- end -}}
|
|
|
|
|
2021-08-26 12:52:09 +00:00
|
|
|
# Linuxbrew setup
|
|
|
|
if [ -d $HOME/../linuxbrew/.linuxbrew ]; then
|
|
|
|
BREWPATH=$HOME/../linuxbrew/.linuxbrew
|
|
|
|
elif [ -d $HOME/.linuxbrew ]; then
|
|
|
|
BREWPATH=$HOME/.linuxbrew
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -n "$BREWPATH" ]; then
|
2021-08-26 12:53:37 +00:00
|
|
|
fpath+=($BREWPATH/share/zsh/site-functions)
|
|
|
|
export fpath
|
2021-08-26 12:52:09 +00:00
|
|
|
fi
|