Last active
December 23, 2015 03:09
-
-
Save robertlyall/6571765 to your computer and use it in GitHub Desktop.
Cool function for Terminal. I just need to type "upload cool-image.jpg" in the Terminal to upload it to my VPS, and copy the public URL to my clipboard.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function upload() { | |
scp "$1" robert@rglyall.co.uk:~/public/rglyall.co.uk/public/i; | |
echo "http://rglyall.co.uk/i/$1" | pbcopy; | |
echo "Copied to clipboard: http://rglyall.co.uk/i/$1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment