Skip to content

Instantly share code, notes, and snippets.

@toland
Created January 1, 2012 23:37
Show Gist options
  • Save toland/1548665 to your computer and use it in GitHub Desktop.
Save toland/1548665 to your computer and use it in GitHub Desktop.
Simple script that can be used when setting up iTerm2 as default ssh client.
#!/bin/sh
if [ -z "${2}" ]; then
ssh $1
else
ssh $2@$1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment