Difference between revisions of "Dotfiles"

From Noah.org
Jump to navigationJump to search
Line 3: Line 3:
 
== my dotfiles ==
 
== my dotfiles ==
  
I keep all of my beloved UNIX dotfiles in an gzip archive here:
+
I keep all of my beloved UNIX home directory dotfiles in an gzip archive here:
  
 
     [http://www.noah.org/engineering/dotfiles/dotfiles.tar.gz dotfiles.tar.gz]
 
     [http://www.noah.org/engineering/dotfiles/dotfiles.tar.gz dotfiles.tar.gz]
  
Some of the more interesting dotfiles to me are:
+
Some of the more interesting UNIX dotfiles to me are:
  
 
* [http://www.noah.org/engineering/dotfiles/.bashrc .bashrc]
 
* [http://www.noah.org/engineering/dotfiles/.bashrc .bashrc]
 
* [http://www.noah.org/engineering/dotfiles/.bash_aliases .bash_aliases]
 
* [http://www.noah.org/engineering/dotfiles/.bash_aliases .bash_aliases]
 +
* [http://www.noah.org/engineering/dotfiles/.vim/ .vim/]
 
* [http://www.noah.org/engineering/dotfiles/.vimrc .vimrc]
 
* [http://www.noah.org/engineering/dotfiles/.vimrc .vimrc]
* [http://www.noah.org/engineering/dotfiles/.vim/ .vim/]
+
* [http://www.noah.org/engineering/dotfiles/.inputrc .inputrc]
 +
* [http://www.noah.org/engineering/dotfiles/.lynxrc .lynxrc]
 +
* [http://www.noah.org/engineering/dotfiles/.mailcap .mailcap]
 +
* [http://www.noah.org/engineering/dotfiles/.pythonrc .pythonrc]
 +
* [http://www.noah.org/engineering/dotfiles/.screenrc .screenrc]
 +
* [http://www.noah.org/engineering/dotfiles/.fonts/ .fonts/]
 +
* [http://www.noah.org/engineering/dotfiles/.mutt/ .mutt/]
 +
* [http://www.noah.org/engineering/dotfiles/.subversion/ .subversion/]
  
I tried to get all of the bash dot files to work on both Linux and BSD, with Linux being favored. I don't like my dotfiles to depend too much on the platform I'm running on. This doesn't always work too well with older BSD systems.
+
I tried to get all of the bash dotfiles to work on both Linux and BSD, with Linux being favored. I don't like my dotfiles to depend too much on the platform I'm running on, but this doesn't always work too well with older BSD systems. It's harmless when it fails. Sometimes I get warning when I login on really old BSD systems.
  
 
== .dotfiles sync script ==
 
== .dotfiles sync script ==

Revision as of 19:43, 27 December 2007


my dotfiles

I keep all of my beloved UNIX home directory dotfiles in an gzip archive here:

   dotfiles.tar.gz

Some of the more interesting UNIX dotfiles to me are:

I tried to get all of the bash dotfiles to work on both Linux and BSD, with Linux being favored. I don't like my dotfiles to depend too much on the platform I'm running on, but this doesn't always work too well with older BSD systems. It's harmless when it fails. Sometimes I get warning when I login on really old BSD systems.

.dotfiles sync script

I have a shell script that I can run to periodically pull down the latest versions and update my home directory:

   .dotfiles

The first thing I do on a new system is grab the .dotfiles script and then run it to download and sync all the other dotfiles. You have to chmod 755 the script to run it.

# wget http://www.noah.org/engineering/dotfiles/.dotfiles
# chmod 755 .dotfiles
# ./.dotfiles

The strategy that I use is to have all of my systems use exactly the same dotfiles. Of course, I want some options to be unique to each local machine. To handle this I have each dotfile include a local version that is not updated by the dotfiles sync script. For example, the .bashrc file includes .bashrc_local.

I considered using something like SVN to store these dot files, but I found this little script simpler and quicker for my needs.

more dotfiles

www.dotfiles.com has lots of dotfiles. Lots!