Skip to content

Instantly share code, notes, and snippets.

@rensjaspers
Last active November 18, 2019 16:44
Show Gist options
  • Save rensjaspers/3f8e3252ad244cc20d9adbafd9cf4752 to your computer and use it in GitHub Desktop.
Save rensjaspers/3f8e3252ad244cc20d9adbafd9cf4752 to your computer and use it in GitHub Desktop.
Quickly install dotfiles
#!/bin/bash
git clone --bare git@github.com:rensjaspers/dotfiles.git $HOME/.mydotfiles
function mydotfiles {
/usr/bin/git --git-dir=$HOME/.mydotfiles/ --work-tree=$HOME $@
}
mydotfiles checkout
mydotfiles config status.showUntrackedFiles no
mydotfiles submodule init
mydotfiles submodule update --remote --recursive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment