Skip to content

Instantly share code, notes, and snippets.

@nathasm
Created June 19, 2019 21:27
Show Gist options
  • Save nathasm/92fbdfd6cf45ba6ba0b738d7eb71300f to your computer and use it in GitHub Desktop.
Save nathasm/92fbdfd6cf45ba6ba0b738d7eb71300f to your computer and use it in GitHub Desktop.
GIT=`which git`
$GIT init --bare $HOME/.cfg
alias config='$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/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment