dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9cb4d09d6537c45f7826daa367bde4a57275a9e7
parent 954d110d25eba2309ef4948d853b7b637758a709
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Fri,  4 Jan 2019 23:09:26 -0500

nifty alias examples

Diffstat:
M.bashrc | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -36,9 +36,11 @@ alias diff="diff --color=auto" alias ccat="highlight --out-format=ansi" # Color cat - print file with syntax highlighting. # Internet -alias yt="youtube-dl --add-metadata -ic" # Download video link +alias yt="youtube-dl --add-metadata -i" # Download video link alias yta="yt -x -f bestaudio/best" # Download only audio alias YT="youtube-viewer" shdl() { curl -O $(curl -s http://sci-hub.tw/"$@" | grep location.href | grep -o http.*pdf) ;} -vf() { $EDITOR $(fzf) ;} +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 % ;}