summaryrefslogtreecommitdiff
path: root/.zshrc
blob: 6146ac6e4195517a6711ed8f5f2a003830d31b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ZDOTDIR=~/.zsh

if [ -d $ZDOTDIR ]; then
	for script in $ZDOTDIR/??_*.zsh
	do
		source $script
		# find host-based script and source it
		local_script="${script:r}.`hostname -s`"
		[ -f $local_script ] && source $local_script
	done
fi

if [ "`whoami`" = "root" ]
then
	[ "`pwd`" = ~ ] && cd ~root
	export HOME=~root
	HISTFILE=$HISTFILE.root
fi