Skip to content

Instantly share code, notes, and snippets.

@benharri
Created June 24, 2018 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benharri/17f74f5df4372119b947769a0c989f61 to your computer and use it in GitHub Desktop.
Save benharri/17f74f5df4372119b947769a0c989f61 to your computer and use it in GitHub Desktop.
function scr
set -l filename ~/Pictures/scr_(date +%s).png
maim -s $filename
scp $filename thor:pub/screenies/. >/dev/null
echo -n "https://bhh.sh/pub/screenies/"(basename $filename) | xclip -selection clipboard
xclip -selection clipboard -o
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment