# Overrides to values in this file should be placed in your $HOME/.profile
# as this file will be replaced/reset on software upgrades.

if [ "$(whoami)" == "root" ]
then
        export PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
else
        export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
fi
export PS2='> '
export PS4='+ '

[ -z "${TERM}" -o "${TERM}" = "dumb" ] && TERM="vt100"
export TERM

# Vi is a more familiar editor for experienced linux users but nano is
# safer for the casual user.
EDITOR=/usr/bin/nano
VISUAL=$EDITOR
export EDITOR VISUAL

# This does not let you select alternate languages as we don't have National
# Language Support (it's to heavy for some processors) but it does drag in the
# UTF-8 character set to allow use of accented characters etc.
LANG=en_GB.utf8
LC_ALL=en_GB.utf8
export LANG LC_ALL



#
# Command aliases
#
alias mii-tool="echo 'mii-tool is deprecated. Please use ethtool instead.'; false"
alias ifconfig="/lib/platinum/ifconfig-compat"
alias route="/lib/platinum/route-compat"
alias minicom="openport --minicom"
alias picocom="openport --picocom"
alias gconfig="config"
alias ntpdc="echo 'ntpdc is deprecated. Please use ntpq instead.'; false"
