diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2019-01-04 23:09:26 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2019-01-04 23:09:26 -0500 |
| commit | 3e2471deb6737d5a8111c51451e37eb2745288c8 (patch) | |
| tree | 122de5d090f6bea760cb67685005bd1ca4d24813 | |
| parent | 6b9dd70f2923b43de964a1e56e2c30e607602bce (diff) | |
| download | eibhear-3e2471deb6737d5a8111c51451e37eb2745288c8.tar.gz eibhear-3e2471deb6737d5a8111c51451e37eb2745288c8.tar.zst eibhear-3e2471deb6737d5a8111c51451e37eb2745288c8.zip | |
nifty alias examples
| -rw-r--r-- | .bashrc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 % ;} |
