Created
June 24, 2018 23:08
-
-
Save benharri/17f74f5df4372119b947769a0c989f61 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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