Skip to content

Commit

Permalink
ZDOT_RUN_HOOKS, ZDOT_LIST_HOOKS
Browse files Browse the repository at this point in the history
  • Loading branch information
adam committed Mar 13, 2006
1 parent 6385484 commit 35dd145
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .shared_env
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,18 @@ sh_load_status .shared_env
# See .zshenv

zdotdir=${ZDOTDIR:-$HOME}
export ZDOTDIR="$zdotdir"
ZDOTDIR="$zdotdir"
ZDOT_RUN_HOOKS="$ZDOTDIR/.zsh/functions/run_hooks"
ZDOT_LIST_HOOKS="$ZDOTDIR/.zsh/functions/list_hooks"
export ZDOTDIR ZDOT_RUN_HOOKS ZDOT_LIST_HOOKS

# Define a search path to be used by run_hooks
if [ "$ZDOTDIR" = "$HOME" ]; then
ZDOTDIRPATH=$ZDOTDIR
ZDOTDIRREVPATH=$ZDOTDIR
else
export OTHER_USER=1
OTHER_USER=1
export OTHER_USER
ZDOTDIRPATH="$ZDOTDIR $HOME"
ZDOTDIRREVPATH="$HOME $ZDOTDIR"
fi
Expand Down Expand Up @@ -233,6 +237,6 @@ NS=/etc/sysconfig/network-scripts

# }}}

. $ZDOTDIR/.zsh/functions/run_hooks .shared_env.d
. $ZDOT_RUN_HOOKS .shared_env.d

shared_env_loaded=y

0 comments on commit 35dd145

Please sign in to comment.