Skip to content

Instantly share code, notes, and snippets.

@pelhage
Created December 9, 2017 05:55
Show Gist options
  • Select an option

  • Save pelhage/75c010a3ddd07a9d8175c155a671797b to your computer and use it in GitHub Desktop.

Select an option

Save pelhage/75c010a3ddd07a9d8175c155a671797b to your computer and use it in GitHub Desktop.
dotfile setup script
git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment