Last active
February 18, 2022 09:28
-
-
Save daamnathaniel/23ad3f2b4e06c1d4428cb4e720f573aa to your computer and use it in GitHub Desktop.
dotfiles alias so that commands are run against the repository and the usual .git local folder, so as to not interfere with other Gid repositories around.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git init --bare $HOME/.kp | |
| alias kp='/usr/bin/git --git-dir=$HOME/.kp/ --work-tree=$HOME' | |
| kp config --local status.showUntrackedFiles no | |
| echo "alias kp='/usr/bin/git --git-dir=$HOME/.kp/ --work-tree=$HOME'" >> $HOME/.config/fish/config.fish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment