mirror of
https://github.com/MillironX/dotfiles.git
synced 2024-11-25 14:49:55 +00:00
Add in workaround for fpath
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
0e971860ad
commit
219c25e0f0
1 changed files with 15 additions and 0 deletions
|
@ -1,4 +1,19 @@
|
||||||
# shellcheck shell=zsh
|
# shellcheck shell=zsh
|
||||||
|
|
||||||
|
{{- 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 -}}
|
||||||
|
|
||||||
# Linuxbrew setup
|
# Linuxbrew setup
|
||||||
if [ -d $HOME/../linuxbrew/.linuxbrew ]; then
|
if [ -d $HOME/../linuxbrew/.linuxbrew ]; then
|
||||||
BREWPATH=$HOME/../linuxbrew/.linuxbrew
|
BREWPATH=$HOME/../linuxbrew/.linuxbrew
|
||||||
|
|
Loading…
Reference in a new issue