# $FreeBSD$
#
# System-wide .profile file for sh(1).
#
# Uncomment this to give you the default 4.2 behavior, where disk
# information is shown in K-Blocks
# BLOCKSIZE=K; export BLOCKSIZE
#
# For the setting of languages and character sets please see
# login.conf(5) and in particular the charset and lang options.
# For full locales list check /usr/share/locale/*
# You should also read the setlocale(3) man page for information
# on how to achieve more precise control of locale settings.
#
# Read system messages
# msgs -f
# Allow terminal messages
# mesg y

# Alias cp, mv, and rm to be interactive
alias cp='cp -i'
alias rm='rm -i'
alias mv='mv -i'

# Our prefered 'ls' options break on non-FreeBSD boxes
if [ "`uname`" = "Isilon OneFS" ]; then
	alias ls='ls -wz'
fi

# Set the prompt to something fancy only if we are in a bash shell
# if we aren't in a bash shell (ie sh in single user mode or whatnot
# just use the hostname and a '#' (for root) or '$' for non-root
if [ "X$SHELL" = "X/usr/local/bin/bash" ]; then
  PS1='\h\$ '
else
  HOST=`hostname`
  ID=`id -ru`
  if [ $ID -eq 0 ]; then
     PART="#"
     PATH=/sbin:/usr/sbin:$PATH
     export PATH
  else
     PART="$"
  fi
  PS1="$HOST$PART "
fi
export PS1
