blob: 9911d4dcc3c3cf7ae7097868dded665f47672380 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# The world's best pastebin terminal replacement. I'm so in love. You
# can call this from *within* vi!
if [ -n "$1" ]; then
exec curl -s "ix.io/$1"
fi
url=$(curl -s -F 'f:1=<-' http://ix.io)
wee "$url" 2>/dev/null
echo "$url"
which xclip >/dev/null || exit 0
echo "$url" | xclip
|