Some of the things that the profile does are:
- colors the prompt
- adds shortcuts for ll and l (ls -lF and ls -laF)
- fixes the delete (among others) key so that delete actually deletes characters, rather than add tildes!
- adds mouse support to pico and makes 'nano' refer to pico (our system doesn't have nano)
- sets up CDPATH (adds the directories in this variable to the search path when using cd)
All that you need to do is save the above text in your home directory under the filename '.profile'.
# set the term to xterm
export TERM=xterm
# Set up VISUAL, EDITOR for crontab editing
VISUAL=/usr/local/bin/pico
EDITOR=${VISUAL}
# Set up a prompt
PS1="\u@\h:\w# "
export PS1="\e[1;31m$(echo $PS1)\e[m"
# Export all the above
export VISUAL EDITOR PS1
# set up CDPATH
CDPATH=$HOME
export CDPATH
# set up some aliases
alias ll="ls -lF"
alias l="ls -laF"
alias nano="pico -w -m"
alias pico="/usr/local/bin/pico -w -m"
# fix some keys
case $TERM in
xterm*)
bind '"\e[1~": beginning-of-line'
bind '"\e[3~": delete-char'
bind '"\e[4~": end-of-line'
bind '"\177": backward-delete-char'
;;
esac
# eof
I have tested this on Solaris, SuSe Linux and Ubuntu Linux.
Good luck!