diff --git a/.config/aliasrc b/.config/aliasrc index 5982a547..c7d58132 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -27,4 +27,8 @@ alias ka="killall" \ command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present. +shdl() { curl -O $(curl -s http://sci-hub.tw/"$@" | grep location.href | grep -o http.*pdf) ;} +se() { du -a ~/.scripts/* ~/.config/* | awk '{print $2}' | fzf | xargs -r $EDITOR ;} +sv() { vcopy "$(du -a ~/.scripts/* ~/.config/* | awk '{print $2}' | fzf)" ;} + vf() { fzf | xargs -r -I % $EDITOR % ;}