Skip to content

Instantly share code, notes, and snippets.

@rnmp
Created July 31, 2011 13:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rnmp/1116782 to your computer and use it in GitHub Desktop.
Save rnmp/1116782 to your computer and use it in GitHub Desktop.
function ip {
port=$1
if [[ port -eq '' ]]; then
echo \"http://$IP/\" copied to clipboard.
echo http://$IP/ | pbcopy
else
echo \"http://$IP:$port/\" copied to clipboard.
echo http://$IP:$port/ | pbcopy
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment