A good .bashrc
This How-to applies to: Any version.
My bashrc file, which I consider to be very useful. A bashrc file allows you to customise your Unix shell (provided it is Bash, which is the case on most Linux boxes, and OSX?)
# ~/.bashrc
# Make the prompt in the for user@host:directory
export PS1='\u@\h:\w\$ '
# Eliminate duplicates in your command history
export HISTCONTROL=ignoredups
# Make ls and ll colour, and ll show a complete list with human readable file sizes.
alias ll='ls -lahi --color'
alias ls='ls --color'
For the IT-illiterate...
Hi Nigel. For those of us who are not IT graduates (there should be more of us coming along soon) what on earth is a
.bashrc
?