Skip to content

Instantly share code, notes, and snippets.

@daamnathaniel
Last active February 18, 2022 09:28
Show Gist options
  • Select an option

  • Save daamnathaniel/23ad3f2b4e06c1d4428cb4e720f573aa to your computer and use it in GitHub Desktop.

Select an option

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.
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