Skip to content

Instantly share code, notes, and snippets.

@mattpuchlerz
Created February 7, 2010 19:46
Show Gist options
  • Save mattpuchlerz/297635 to your computer and use it in GitHub Desktop.
Save mattpuchlerz/297635 to your computer and use it in GitHub Desktop.
Simple bash script to zoom OS X applications and open up a project full-screen in TextMate.
zoom() {
if [ -z $1 ]; then
echo "usage: $FUNCNAME ApplicationName"
else
osascript -e "tell application \"$1\" to set zoomed of window 1 to not (zoomed of window 1)" 2>&1 >/dev/null
fi
}
alias mysite="cd ~/Sites/mysite.com && mate app/ config/ features/ public/ spec/ && zoom TextMate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment