zshrc: prefer yt-dlp if available
This commit is contained in:
parent
1c1fe97938
commit
533e7ec0e0
1 changed files with 8 additions and 2 deletions
|
@ -41,8 +41,14 @@ alias gitc="git commit"
|
||||||
alias gitp="git push"
|
alias gitp="git push"
|
||||||
alias gitl="git log --shortstat --graph"
|
alias gitl="git log --shortstat --graph"
|
||||||
alias gitd="git diff --word-diff"
|
alias gitd="git diff --word-diff"
|
||||||
alias Y="noglob youtube-dl --no-check-certificate -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]'"
|
which yt-dlp > /dev/null
|
||||||
alias Ysound="noglob youtube-dl --no-check-certificate -f bestaudio"
|
if [[ $? -eq 0 ]]; then
|
||||||
|
alias Y="noglob yt-dlp --no-check-certificate -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]'"
|
||||||
|
alias Ysound="noglob yt-dlp --no-check-certificate -f bestaudio"
|
||||||
|
else
|
||||||
|
alias Y="noglob youtube-dl --no-check-certificate -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]'"
|
||||||
|
alias Ysound="noglob youtube-dl --no-check-certificate -f bestaudio"
|
||||||
|
fi
|
||||||
alias battery="upower -i /org/freedesktop/UPower/devices/battery_BAT0"
|
alias battery="upower -i /org/freedesktop/UPower/devices/battery_BAT0"
|
||||||
alias pp=python2
|
alias pp=python2
|
||||||
alias ppp=python3
|
alias ppp=python3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue