nifty alias examples
This commit is contained in:
parent
6b9dd70f29
commit
3e2471deb6
1 changed files with 4 additions and 2 deletions
6
.bashrc
6
.bashrc
|
@ -36,9 +36,11 @@ alias diff="diff --color=auto"
|
||||||
alias ccat="highlight --out-format=ansi" # Color cat - print file with syntax highlighting.
|
alias ccat="highlight --out-format=ansi" # Color cat - print file with syntax highlighting.
|
||||||
|
|
||||||
# Internet
|
# 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 yta="yt -x -f bestaudio/best" # Download only audio
|
||||||
alias YT="youtube-viewer"
|
alias YT="youtube-viewer"
|
||||||
|
|
||||||
shdl() { curl -O $(curl -s http://sci-hub.tw/"$@" | grep location.href | grep -o http.*pdf) ;}
|
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 % ;}
|
||||||
|
|
Loading…
Reference in a new issue