Use find instead of du | awk

This commit is contained in:
Anders Damsgaard 2019-03-05 10:29:55 +01:00
parent d3ea9e2eab
commit 2c1d2f913b
No known key found for this signature in database
GPG Key ID: B790F4AD1BF858FE

View File

@ -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 % ;}