mirror of
https://github.com/MillironX/dotfiles.git
synced 2024-11-14 19:03:09 +00:00
Simplify fpath workaround
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
219c25e0f0
commit
397a2f9ac8
1 changed files with 4 additions and 13 deletions
|
@ -1,18 +1,9 @@
|
||||||
# shellcheck shell=zsh
|
# shellcheck shell=bash
|
||||||
|
|
||||||
{{- if (eq .cluster "scinet") -}}
|
{{ if (or (eq .chezmoi.hostname "Atlas-login-1") (eq .chezmoi.hostname "Atlas-login-2")) -}}
|
||||||
# Workaround for SCINet admins clobbering fpath
|
# Workaround for SCINet admins clobbering fpath
|
||||||
ZEXECDIR=$(dirname $(command -v zsh))
|
fpath+=($HOME/.local/share/zsh/5.8/functions)
|
||||||
if [ -d $ZEXECDIR/../share/zsh/functions ]; then
|
{{- end }}
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue