Skip to content

Instantly share code, notes, and snippets.

@krzyzanowskim
Created July 31, 2020 11:37
Show Gist options
  • Save krzyzanowskim/4ebd8415a9eb26be0a4b19ec24e53191 to your computer and use it in GitHub Desktop.
Save krzyzanowskim/4ebd8415a9eb26be0a4b19ec24e53191 to your computer and use it in GitHub Desktop.
Close Xcode on git checkout
# .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