3 ms·
For sharing code snippets you can just do something like this: alias paste='curl -s -F '\''sprunge=<-'\'' http://sprunge.us http://sprunge.us | tee >(xclip -se
by HurrdurrHodor 9y ago
For sharing code snippets you can just do something like this:
alias paste='curl -s -F '\''sprunge=<-'\'' http://sprunge.us http://sprunge.us | tee >(xclip -selection clipboard)'
Which on my system will create a paste of whatever you pipe to it and put the link to it in your clipboard.