# Ash initialization.

test -z "$EDITOR" && {  # Don't repeat in subshells.

umask 022

# Favourite editor and pager, search path for binaries, etc.
export EDITOR=vi
export PAGER=more
export PATH=/usr/local/bin:/bin:/usr/bin:/usr/bin/X11
export PATH=$PATH:/usr/local/sbin:/sbin:/usr/sbin

# Bin does the paperwork.
test $USER = bin && export MAIL=$HOME/mailbox

} # End of no-repeat.

# Let cd display the current directory on the status line.
if [ "$-" : '.*i.*' -a -t 0 -a -f /usr/bin/tget ] && tget -flag hs
then
	eval "cd()
	{
		chdir \"\$@\" &&
		echo -n '$(tget -str ts \
				"$USER@$(hostname):'\"\`pwd\`\"'" \
				-str fs)'
	}"
	cd .
fi
