Created
November 25, 2022 00:12
-
-
Save rurumimic/e07ce9d205656b28d0475e51a50df372 to your computer and use it in GitHub Desktop.
windows / git bash / git-prompt.sh
This file contains 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
# 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