From ff3fc5584e3309a6bc07785f185626c97cfcd04f Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 30 Mar 2020 14:04:35 +0200 Subject: [PATCH] adding hastebin functionality to cli --- .config/aliasrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/aliasrc b/.config/aliasrc index 28c2c1b..753a2e6 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -27,6 +27,9 @@ srd() { find ~/ownCloud/* -type f | grep ".pdf" | fzf | xargs -r $READER ;} # grep alias grep="grep --color=auto" +# hastebin +haste() { a=$(cat); curl -X POST -s -d "$a" https://www.hastebin.martenkante.eu/documents | awk -F '"' '{print "https://www.hastebin.martenkante.eu/"$4}'; } + # ls(d) alias l="lsd" alias la="lsd -la"