Custom Dotfiles
26 Sep 2011I use custom organization of my .bashrc and .bash_profile i.e. my “dotfiles”. Its great to keep all of my aliases clean and organized. I highly recommend Peepcode’s Advanced Command Line for more info on configuring your own set of custom dotfiles.
The one thing I always forget how to do whenever I move to a new computer or hard-drive is to set up the correct files and set up the proper sourcing, so here is my shorthand note to my future self.
# First copy files to ~/bin/dotfiles # Open bashrc mate ~/.bashrc # Paste this in ``` source ~/bin/dotfiles/bashrc ``` # Open bash_profile mate ~/.bash_profile # Paste this in ``` if [ -f ~/.bashrc ]; then source ~/.bashrc fi ```