Skip to content

Instantly share code, notes, and snippets.

@aprescott
Created October 31, 2014 18:48
Show Gist options
  • Save aprescott/1705d11ac5091a447311 to your computer and use it in GitHub Desktop.
Save aprescott/1705d11ac5091a447311 to your computer and use it in GitHub Desktop.
automatically switch Terminal.app to a specific profile before ssh'ing
function prodssh { osascript -e 'tell application "Terminal" to set current settings of selected tab of window 1 to settings set "Red Sands"' && ssh "$@"; }
# prodssh yourserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment