Skip to content

Instantly share code, notes, and snippets.

@rurumimic
Created November 25, 2022 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rurumimic/e07ce9d205656b28d0475e51a50df372 to your computer and use it in GitHub Desktop.
Save rurumimic/e07ce9d205656b28d0475e51a50df372 to your computer and use it in GitHub Desktop.
windows / git bash / git-prompt.sh
# open git bash
# copy this path
git --exec-path
.../mingw64/libexec/git-core
# edit
vi /etc/profile.d/git-prompt.sh
# line 30: paste path
GIT_EXEC_PATH="$(git --exec-path 2>/dev/null)"
GIT_EXEC_PATH=.../mingw64/libexec/git-core
# line 39: comment
# PS1="$PS1"'`__git_ps1`' # bash function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment