Personal tools
You are here: Home Resources How-tos A good .bashrc
Document Actions

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'

by Nigel Sim last modified 2006-04-04 23:49

For the IT-illiterate...

Posted by Stephen Gibson at 2006-04-04 02:15

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?


Powered by Plone, the Open Source Content Management System