# Zork PS1
# Originally by Nick Moffitt <nick@zork.net> for /etc/profile on zork.net
# Modified by Peter A. Peterson II <pedro@tastytronic.net> for flynn.zork.net
# Modified by Nate Riffe <inkblot@movealong.org> for goose.movealong.org
# Modified by Nate Riffe <inkblot@movealong.org> for LNX-BBC
glue='\[\e[0;${PROMPT_GLUE_COLOR}m\]'
info='\[\e[0;${PROMPT_INFO_COLOR}m\]'
normal='\[\e[0m\]'

if [ "`id -u`" -eq 0 ]; then
	end='#'
else
	end='$'
fi

PS1="$glue[$info\u$glue@$info\h$glue:$info\w$glue]$end $normal"

CVS_RSH=ssh
RSYNC_RSH=ssh
RSH=ssh

export PATH=/bin:/sbin:/games:/usr/local/bin
export PS1 CVS_RSH RSYNC_RSH RSH PATH

export PROMPT_GLUE_COLOR='1;34'
export PROMPT_INFO_COLOR='1;36'

alias ls='ls --color=auto'

alias quine='alias quine'

function sshd(){
	echo '(You did NOT start sshd by typing this command!)'
	echo
	echo "Since sshd requires a host key in order to run, you must start it via"
	echo "/etc/init.d/sshd start"
}

function pcmcia(){
	echo '(You did NOT start pcmcia by typing this command!)'
	echo
	echo "You should start PCMCIA Card Services via"
	echo "/etc/init.d/pcmcia start"
}

function browser_warning(){
	echo 'The only graphical browser provided here is MozillaFirebird'
	echo
	echo 'Text-oriented browsers provided here include lynx, links,'
	echo 'w3m, wget, and curl.'
}

alias mozilla=MozillaFirebird
alias netscape=browser_warning
alias phoenix=MozillaFirebird
alias browsex=browser_warning
alias dillo=browser_warning

# allow help script to be run instead of shell builtin help
enable -n help
