Created
April 20, 2015 04:35
-
-
Save chrisyip/523b66333c98cc915d77 to your computer and use it in GitHub Desktop.
Script for opening Git Tower
This file contains 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/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