summaryrefslogtreecommitdiff
blob: a1e121addfd61006ee1b521f65309b64b5242c6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
eval `dircolors`
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"

if [ -e "/etc/profile.env" ]
then
  source /etc/profile.env
fi

if [ `/usr/bin/whoami` == 'root' ] ; then
	export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
	export PATH=/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}
	#077 would be more secure, but 022 is generally quite realistic
	umask 022
else
	export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
	export PATH=/bin:/usr/bin:${PATH}
	umask 022
fi
unset ROOTPATH
#This actually ends up being the e3 pico clone
export EDITOR=/usr/bin/pico