Skip to content

Instantly share code, notes, and snippets.

@EkoAdiWijayanto
Created May 20, 2024 12:45
Show Gist options
  • Save EkoAdiWijayanto/d792361cc8a9ff6a8a94d80f95c2d5a4 to your computer and use it in GitHub Desktop.
Save EkoAdiWijayanto/d792361cc8a9ff6a8a94d80f95c2d5a4 to your computer and use it in GitHub Desktop.
Init Config 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/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment