diff --git a/.config/aliasrc b/.config/aliasrc index 69baf9ca..9ad7f57b 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -28,6 +28,6 @@ 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)" ;} +se() { find ~/.scripts/* ~/.config/* -type f | fzf | xargs -r $EDITOR ;} +sv() { vcopy "$(find ~/.scripts/* ~/.config/* -type f | fzf)" ;} vf() { fzf | xargs -r -I % $EDITOR % ;}