# HG changeset patch # User Steve Losh # Date 1580756354 18000 # Node ID 8d1c68b94471173d1092e5d1f2d21b509f87a924 # Parent a17191abd5e997e72db3a42859a760384dcfe9fe X clipboards are absolute hell diff -r a17191abd5e9 -r 8d1c68b94471 bin/pastebin --- a/bin/pastebin Sun Feb 02 21:05:54 2020 -0500 +++ b/bin/pastebin Mon Feb 03 13:59:14 2020 -0500 @@ -2,11 +2,8 @@ set -euo pipefail -PASTE_SHA=$(ssh paste.stevelosh.com 'cat > tmppaste && sha1sum tmppaste | cut -d" " -f1 && mv tmppaste /var/www/paste/`sha1sum tmppaste | cut -d" " -f1`') +PASTE_SHA=$(ssh paste.stevelosh.com -- 'cat > tmppaste && sha1sum tmppaste | cut -d" " -f1 && mv tmppaste /var/www/paste/`sha1sum tmppaste | cut -d" " -f1`') +URL="https://paste.stevelosh.com/$PASTE_SHA" -echo -n "https://paste.stevelosh.com/$PASTE_SHA" | pbcopy -echo -n 'Copied ' -tput bold -pbpaste -tput sgr0 -echo ' to the clipboard.' +echo -n "$URL" | pbcopy +echo "Copied $URL to the clipboard." diff -r a17191abd5e9 -r 8d1c68b94471 bin/pbpaste --- a/bin/pbpaste Sun Feb 02 21:05:54 2020 -0500 +++ b/bin/pbpaste Mon Feb 03 13:59:14 2020 -0500 @@ -2,4 +2,4 @@ set -euo pipefail -xsel --clipboard +xsel --clipboard --output