Universal Profile

on Feb. 2, 2015, 7:12 p.m.


# HP-UX
if [ `uname` == HP-UX ]; then
export PS1="$(whoami)@$(hostname):"'$PWD'"$ "
fi

# AIX
if [ `uname` == AIX ]; then
export PS1="$(whoami)@$(hostname):"'$PWD'"$ "
fi

# Solaris
if [ `uname` == SunOS ]; then
export PS1="$USER@$(hostname):"'$PWD'"$ "
if [ -e /bin/bash ]; then
export SHELL=/usr/bin/bash
export PS1="\u@\h:\w$ "
exec $SHELL
fi
fi

# Linux
if [ `uname` == Linux ]; then
export PS1="\u@\h:\w$ "
fi