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
#!/usr/local/bin/bash | |
# For a walk through of what this does, how it works, | |
# see: https://stackoverflow.com/a/68673744/1448212 | |
# git show-branch supports 29 branches; reserve 1 for current branch | |
GIT_SHOW_BRANCH_MAX=28 | |
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)" |
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
#!/usr/local/bin/bash | |
# For a walk through of what this does, how it works, | |
# see: https://stackoverflow.com/a/68673744/1448212 | |
# git show-branch supports 29 branches; reserve 1 for current branch | |
GIT_SHOW_BRANCH_MAX=28 | |
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)" |