Based on this guy's setup.
Add alias:
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
Clone bare repo:
git clone --bare [email protected]:gnpar/dotfiles.git $HOME/.dotfiles
Checkout the files:
config checkout
And don't show untracked files:
config config --local status.showUntrackedFiles no
The same as using git, but use config instead. So config status/add/commit/push
as necessary.
To see what files are in repo: config ls-files
There's two ways to get a single config file:
-
Clone the bare repo and setup the alias as detailed above, then do:
config checkout -- <file>
-
Find the URL to the raw file on github and download it with wget or curl:
wget https://raw.githubusercontent.com/gnpar/dotfiles/master/.vimrc