Use Mercurial for dotfiles
You use source control to keep track of dotfiles in your home directory, right?
Well instead of using git
/.gitignore
like this:
*
!.vimrc
!.zshrc
and ending up with git info in your fancy zsh shell prompt (even though your only in your home folder) that looks like this:
~ git:(master) $
Roll with mercurial for your dotfiles instead so your .hgignore
looks like this:
syntax: glob
*
and your home folder shell prompt will be nice and clean like this:
~ $
Any files you explicitly add to your mercurial repo with hg add <filename>
will add the file to your repo even if .hgignore
says to ignore it.
Written by Reid Ransom
Related protips
2 Responses
Or create another folder and symlink all your dotfiles to this.
over 1 year ago
·
Doing exactly what hauleth says as well. Symlink to the rescue. No thanks to mercurial.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Zsh
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#