all repos — nixfiles @ 5fd2b8a8f56d43b4723040be3fa1eece9db30bac

System and user configuration, managed by nix and home-manager

tag-zsh/config/zsh/zshenv (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if [[ $SHLVL -eq 1 || (-n $DISPLAY && $SHLVL -lt 3) ]]
then
	if [[ -f $ZDOTDIR/zshenv.local ]]
	then
		. $ZDOTDIR/zshenv.local
	fi

	if [[ -f $ZDOTDIR/zshenv.private ]]
	then
		. $ZDOTDIR/zshenv.private
	fi

	ZPLUG_HOME=${ZPLUG_HOME:-~/projects/zplug}

	if [[ -z $SSH_AUTH_SOCK ]]
	then
		export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket
	fi
fi