Skip to content

Instantly share code, notes, and snippets.

@metaskills metaskills/gitio.sh
Last active Aug 29, 2017

Embed
What would you like to do?
Shell Function for Git.io
gitio () {
local url=$(curl -s -i https://git.io -F "url=$1" | grep "Location: " | cut -d" " -f2)
echo -n $url | tr -d '\n' | pbcopy
echo $url
}
@metaskills

This comment has been minimized.

Copy link
Owner Author

commented Aug 28, 2017

Makes use of OS X's pasteboard copy pbcopy tool.

@csexton

This comment has been minimized.

Copy link

commented Aug 29, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.