.bashrc (2015)

Of all the configuration files, .bashrc is the one that will most affect the command line environment. The .bashrc file controls the configuration options for the bash shell, and for the most part it is the same as it would be in linux. My full .bashrc isĀ here.

Colorizing man pages

One alternative to make man pages more readable is to install most and use it for viewing man pages by putting ‘export PAGER=”most”‘ into your .bashrc. Alternately, you can colourize ‘less’ by inserting the following into your .bashrc to colorizeĀ man pages.

I can’t track down where that tip came from originally, but Gen2ly has a good example on his excellent site, so I’ll give the credit to him.

Aliases & Environment Variables

Next is the all important PATH variable, which controls where the computer looks for executable files. I always include the directory to the windows system executables, as there are commands in there that don’t have cygwin counterparts, like tracert.

The bash prompt is usually better when colourized. This is the one I use:

You can see how all the potential colours will look with this handy script:

Then add aliases to your individual taste. The ones I’d suggest would include the following:

X Windows

If you use X, you’ll want this

Proxy Settings

If you have to access the internet via a proxy, you’ll need something like the following settings to pass that information to the other command line utilities. Some command line tools will still need to be configured separately.


And here are some generally useful settings that don’t fit under any other heading.

And done! There are a few other aliases, etc that I use for pydf, nmap and other utilities, but I’ll cover those in their respective pages. Also useful is setting your own colour scheme, which I’ll cover next.