From 2b91596b4c88345ef0639eef5b88a8dca9d514b3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 26 Aug 2008 21:22:34 +0200 Subject: Moved ZDIR and fpath to zshenv --- etc/env | 9 +++++++++ etc/parameters | 1 - etc/rc | 1 - 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 etc/env (limited to 'etc') diff --git a/etc/env b/etc/env new file mode 100644 index 0000000..86b2411 --- /dev/null +++ b/etc/env @@ -0,0 +1,9 @@ +## vim:ft=zsh +## zshenv +## Daniel Friesel +## 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 diff --git a/etc/rc b/etc/rc index 3fea4ac..30ba9fa 100644 --- a/etc/rc +++ b/etc/rc @@ -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 ]] ||' -- cgit v1.2.3