commit 8cd3c9cc5ae118da0b46bb2a9dc16fab64be6e78
parent 030654c202423bfb646019464642a273da135e6b
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 25 Dec 2018 23:29:35 +0100
Add shdl shell function
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/links/.commands.sh b/links/.commands.sh
@@ -166,6 +166,7 @@ news() {
## web services
+shdl() { curl -O $(curl -s http://sci-hub.tw/"$@" | grep location.href | grep -o http.*pdf) ;}
alias youtube-dl='youtube-dl --format mp4'
weather() { curl "wttr.in/?m"; }
define() { curl --silent dict://dict.org/d:"$1"; }