diff options
| author | 2026-01-18 21:53:18 +0100 | |
|---|---|---|
| committer | 2026-01-18 21:53:18 +0100 | |
| commit | e7e22d34089619349eaed54b213d575742748ce5 (patch) | |
| tree | 532853f56020d0ba1b848c9e41662a1bf2ad7ade /dot_config/zsh/zshenv | |
| parent | zsh: ignore local files (diff) | |
zsh: even bigger rewrite
don't... worry about it
I spent basically all day between this and monster hunter.
Diffstat (limited to 'dot_config/zsh/zshenv')
| -rw-r--r-- | dot_config/zsh/zshenv | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/dot_config/zsh/zshenv b/dot_config/zsh/zshenv index e38dde8..0327691 100644 --- a/dot_config/zsh/zshenv +++ b/dot_config/zsh/zshenv @@ -1,14 +1,16 @@ -: ${PAGER:=less} ${EDITOR:=vi} \ - ${HOSTNAME:=$(uname -n)} ${USER:=$(id -un)} \ - ${HISTFILE:=~/.local/state/history/zsh} \ - ${ZDOTDIR:=~/.config/zsh} -export EDITOR HISTFILE PAGER +# vim: ft=zsh +: ${ZDOTDIR:=~/.config/zsh} -NOPATHHELPER=1 -zstyle :grml:completion:compinit arguments -iC +xsource() { + local i + for i; do + [ -r "$i" ] && source "$i" + done +} +xzsource() { + xsource "${@/#/$ZDOTDIR/}" +} -setopt nullglob -path=(~/bin ~/.local/share/sh ~/.local/*/bin /opt/*/bin {/usr,}{/local,}/{s,}bin) -fpath[1,0]=("$ZDOTDIR"/functions) +xzsource zshenv.pre -[ -r ~/.local/share/sh/xdg ] && source ~/.local/share/sh/xdg +xzsource zshenv.{local,post} |
