mirror of https://github.com/rwxrob/dot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
297 B
Bash
15 lines
297 B
Bash
#!/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
|