mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-22 18:49:55 +01:00
New alias for youtube-dl
This commit is contained in:
parent
53a7185265
commit
7248253cdb
11
zsh/alias
11
zsh/alias
@ -21,7 +21,7 @@ if [[ -x $(which lsd) ]]; then
|
|||||||
alias lsd='pwd; lsd -laF --group-dirs=first --icon=never'
|
alias lsd='pwd; lsd -laF --group-dirs=first --icon=never'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update aliases
|
# Update tools/OS aliases
|
||||||
if [[ -x $(which brew) ]]; then
|
if [[ -x $(which brew) ]]; then
|
||||||
alias brewupdate='brew update; brew upgrade; brew upgrade --cask; brew cleanup'
|
alias brewupdate='brew update; brew upgrade; brew upgrade --cask; brew cleanup'
|
||||||
fi
|
fi
|
||||||
@ -43,13 +43,16 @@ alias a2='aria2c -x4 -c -m3'
|
|||||||
# screen reconnect/init
|
# screen reconnect/init
|
||||||
alias sc='screen -R'
|
alias sc='screen -R'
|
||||||
|
|
||||||
# Only download mp4 version of youtube
|
# youtube-dl / yt-dlp
|
||||||
if [[ -x $(which yt-dlp) ]]; then
|
if [[ -x $(which yt-dlp) ]]; then
|
||||||
alias ytmp4='yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"'
|
alias ydl='yt-dlp'
|
||||||
elif [[ -x $(which youtube-dl) ]]; then
|
elif [[ -x $(which youtube-dl) ]]; then
|
||||||
alias ytmp4='youtube-dl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"'
|
alias ydl='youtube-dl'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# youtube-dl(p) - Download only best MP4
|
||||||
|
alias ytmp4='ydl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"'
|
||||||
|
|
||||||
|
|
||||||
# rsync; archive, progress, partial, relative, humanreadable (add -z for compression)
|
# rsync; archive, progress, partial, relative, humanreadable (add -z for compression)
|
||||||
alias rrsync='rsync -avhP'
|
alias rrsync='rsync -avhP'
|
||||||
|
Loading…
Reference in New Issue
Block a user