updot is a script for tracking and updating all of your dotfiles to your repository.
Instead copying dotfiles one by one and forgetting what files have changed, they are stored in updot's dotfiles array and diffed/updated automagically!
-
Save updot. Then,
chmod +x updot && mv updot /usr/local/bin(Assuming/usr/local/binis in your$PATH. You can doecho $PATHif you're not sure..) -
Run
updot -c -uto write your new configuration file (-c specifies to use colors) -
Add your
repository_rootto the updot.conf, and customize yourdotfilesarray. -
Profit! Run
updot -uand never worry about updating your dotfile repo again.
#
# updot.conf - updot configuration file
#
# Repository's root folder location
# Ex: repository_root="$HOME/code/linux/dotfiles"
repository_root=""
# Tracked dotfiles
# This is an array of dotfiles in your $HOME to copy to your root_repository
# Ex: dotfiles=(' .bash_profile .bashrc .inputrc .mutt/muttrc .xinitrc ')
dotfiles=(' .bash_profile
.bashrc
.vimrc
.xinitrc
.Xresources
.xmonad/xmonad.hs
.inputrc
.mutt/muttrc ')
# Use color in output. true/false
color="false"
# Use bold print in output
bold="false"
# Use high intensity color in output
high_intensity="false"
# Use underlined text in output
underline="false"
