Creates a CLI environment for managing dotfiles using git on Linux
Creates a CLI environment for managing dotfiles using git on Linux. It adds an alias called dots
to the shell to interact with a git repository located at $HOME/.dotfiles
.
Run the setup script using wget:
wget -qO - https://raw.githubusercontent.com/atomgomba/dots/master/setup.sh | sh
Or curl:
curl -s https://raw.githubusercontent.com/atomgomba/dots/master/setup.sh | sh
What the setup script does is basically the following:
git init --bare ~/.dotfiles
git --git-dir=~/.dotfiles config status.showUntrackedFiles no
alias dots=git --git-dir=~/.dotfiles
# push a change in vim settings
dots add ~/.vimrc
dots commit -m "vimrc: show line numbers by default"
dots push