Last active
October 25, 2017 08:47
-
-
Save voltrue2/f52bd7ba71f5765ee8cc02068320d858 to your computer and use it in GitHub Desktop.
.git/hooks/post-checkout
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
#!/bin/bash | |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD); | |
if [[ "$CURRENT_BRANCH" = "v0.25" ]]; then | |
echo -e "\033]50;SetProfile=v0.25\a" | |
else | |
echo -e "\033]50;SetProfile=Default\a" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment