Skip to content

Instantly share code, notes, and snippets.

@ethiapath
Created February 10, 2019 10:43
Show Gist options
  • Save ethiapath/050c3ee1de4209218e91a1d977bbc829 to your computer and use it in GitHub Desktop.
Save ethiapath/050c3ee1de4209218e91a1d977bbc829 to your computer and use it in GitHub Desktop.
creates an alias for dotfile config command
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