CONFIGURING BASH **************** Setting The Shell ----------------- $ env SHELL=/bin/bash Log out, and log in. Setting The Path ---------------- Edit: ~/.bashrc Add: PATH=$PATH:/usr/local/sbin;/usr/sbin;/sbin export PATH You can add as many directories as you want to the path. Just be sure they are the complete directory and that each entry is separated by a semi-colon. Modify The Prompt ----------------- Edit: ~/.bashrc Add: PS1="\[\033[1;31m\]\u\[\033[0;32m\]@\h \[\033[0;36m\]\w \[\033[1;31m\]$ \[\033[0;37m\]" This adds the user's name ( \u ), the at symbol ( @ ), the host's name ( \h ) and the current working directory ( \w ) to the prompt and makes the prompt symbol the dollar sign ( $ ). It also changes the colours for each of these. The user's name is now bold and red, the at symbol and the host's name are now green, the working directory is cyan, the prompt symbol is bold red and the command line text is white. Note that the colour code appears before the various prompt additions. Bash Prompt Colour-Codes (8-colour mode) ---------------------------------------- Regular Bold Background HTML (light - dark) black \[\033[0;30m\] \[\033[1;30m\] \[\033[40m\] #555555 - #000000 red \[\033[0;31m\] \[\033[1;31m\] \[\033[41m\] #ff5555 - #aa0000 green \[\033[0;32m\] \[\033[1;32m\] \[\033[42m\] #55ff55 - #00aa00 yellow \[\033[0;33m\] \[\033[1;33m\] \[\033[43m\] #ffff55 - #aa5500 blue \[\033[0;34m\] \[\033[1;34m\] \[\033[44m\] #5555ff - #0000aa magenta \[\033[0;35m\] \[\033[1;35m\] \[\033[45m\] #ff55ff - #aa00aa cyan \[\033[0;36m\] \[\033[1;36m\] \[\033[46m\] #55ffff - #00aaaa white \[\033[0;37m\] \[\033[1;37m\] \[\033[47m\] #ffffff - #aaaaaa Note: HTML values are approximate. Coloured 'ls' And 'dir' Results ------------------------------- Edit: ~/.bashrc Add: alias ls="ls -CF --color=auto" alias dir="ls -CF --color=auto" Merge .bashrc And .bash_profile ------------------------------- To reconcile .bash_profile (which is used by bash for login shells) and .bashrc so that both have the same paths and appearance, edit: ~/.bash_profile Add: if [ -f ~/.bashrc ]; then source ~/.bashrc fi