Skip to content

Instantly share code, notes, and snippets.

@chrisyip
Created April 20, 2015 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisyip/523b66333c98cc915d77 to your computer and use it in GitHub Desktop.
Save chrisyip/523b66333c98cc915d77 to your computer and use it in GitHub Desktop.
Script for opening Git Tower
#!/usr/bin/env bash
if [ -x "/Applications/Tower.app" ] || [ -x "$HOME/Applications/Tower.app" ]; then
tower="Tower"
else
echo "Tower not found!"
exit 2
fi
if [ -z "$1" ]; then
eval "open -a $tower ."
else
eval "open -a $tower $@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment