diff options
-rw-r--r-- | .links | 1 | ||||
-rw-r--r-- | etc/env | 9 | ||||
-rw-r--r-- | etc/parameters | 1 | ||||
-rw-r--r-- | etc/rc | 1 | ||||
-rw-r--r-- | hooks/post-update | 3 |
5 files changed, 12 insertions, 3 deletions
@@ -1,2 +1,3 @@ soft .zshrc packages/zsh/etc/rc soft .zprofile packages/zsh/etc/profile +soft .zshenv packages/zsh/etc/env @@ -0,0 +1,9 @@ +## vim:ft=zsh +## zshenv +## Daniel Friesel <derf@derf.homelinux.org> +## https://derf.homelinux.org/~derf/dotfiles/zsh/env +## see also: https://derf.homelinux.org/~derf/dotfiles/zsh/ + +ZDIR=$HOME/packages/zsh/etc +fpath=($ZDIR/functions $ZDIR/completions $fpath) +[[ -r $ZDIR/../provided/env ]] && source $ZDIR/../provided/env diff --git a/etc/parameters b/etc/parameters index 2bd152a..e454982 100644 --- a/etc/parameters +++ b/etc/parameters @@ -9,7 +9,6 @@ LISTMAX=0 TIMEFMT='%E real %U user %S system %P %J' # Paths -fpath=($ZDIR/functions $ZDIR/completions $fpath) [[ $path[1] = $HOME/bin ]] || export PATH=$HOME/bin:$PATH linux: [[ -z $MANPATH ]] && export MANPATH=$(manpath):$HOME/packages/.collected/man @@ -5,7 +5,6 @@ ## see also: https://derf.homelinux.org/~derf/dotfiles/zsh/ ## mostly internal stuff -ZDIR=$HOME/packages/zsh/etc uname=$(uname) alias 'linux:'='[[ $uname = Linux ]] &&' alias 'non-linux:'='[[ $uname = Linux ]] ||' diff --git a/hooks/post-update b/hooks/post-update index fad04b1..8fb46e2 100644 --- a/hooks/post-update +++ b/hooks/post-update @@ -3,13 +3,14 @@ mkdir -p $HOME/var/cache/zsh mkdir -p $PDIR/zsh/provided rm -f $HOME/var/cache/zsh/compdump echo -n > $PDIR/zsh/provided/includes +echo -n > $PDIR/zsh/provided/env typeset -a futurepath for inc in $PDIR/*/provides/zsh/{functions,completions}(N); { futurepath+=$inc } if [[ -n $futurepath ]] { - echo "fpath=($futurepath" '$fpath)' >> $PDIR/zsh/provided/includes + echo "fpath=($futurepath" '$fpath)' > $PDIR/zsh/provided/env } for inc in $PDIR/*/provides/zsh/functions(N); { echo "autoload ${inc:t}" >> $PDIR/zsh/provided/includes |