Created
July 31, 2020 11:37
-
-
Save krzyzanowskim/4ebd8415a9eb26be0a4b19ec24e53191 to your computer and use it in GitHub Desktop.
Close Xcode on git 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
# .zshrc | |
# Close Xcode on git checkout | |
git() { | |
if [[ $1 == "checkout" ]]; then | |
osascript -e 'quit app "Xcode"' | |
command git "$@"; | |
else | |
command git "$@"; | |
fi; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment