summaryrefslogtreecommitdiff
path: root/.zshrc
blob: 3868a767371b0edae95f350fded676d5548fecbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ZDOTDIR=~/.zsh

if [ -d $ZDOTDIR ]; then
	for script in $ZDOTDIR/??_*.zsh
	do
		source $script
		local_script="${script:r}.`hostname -s`"

		if ( [ -f $local_script ] )
		then
			source $local_script
		fi
	done
fi

if [ "`whoami`" = "root" ]
then
	if [ "`pwd`" = ~ ]
	then
		cd ~root
	fi
	export HOME=~root
fi
#cd ~