aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkj-sh6042024-10-09 19:00:03 -0400
committerkj-sh6042024-10-09 19:00:03 -0400
commit1b31f2e04e371996909a1b60c52d2b24a409edc7 (patch)
treea84ee2f03766f63b1e24349d8ac445b5a9c59e17
parentbc0e9a2dc306b16c2c046ad484e535ff7e226ca3 (diff)
feat: add `yt-best` alias/abbr
-rw-r--r--.config/fish/config.fish1
-rw-r--r--.config/shell/.zshrc3
2 files changed, 3 insertions, 1 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
index 230dd31..0187227 100644
--- a/.config/fish/config.fish
+++ b/.config/fish/config.fish
@@ -22,6 +22,7 @@ if status is-interactive
abbr -a t "timedatectl"
abbr -a w "curl wttr.in"
abbr -a x "startx"
+ abbr -a yt-best "youtube-dl -cif 'bestvideo+bestaudio/best'"
abbr -a yt-m4a "youtube-dl -cif 'bestaudio[ext=m4a]'"
abbr -a yt-mp4 "youtube-dl -cif 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'"
abbr -a yt-mpv "mpv --ytdl-format="
diff --git a/.config/shell/.zshrc b/.config/shell/.zshrc
index d62af2e..25298ba 100644
--- a/.config/shell/.zshrc
+++ b/.config/shell/.zshrc
@@ -52,9 +52,10 @@ SAVEHIST=9999999
command which bat >/dev/null 2>&1 && alias cat="bat -p"
# youtube-dl aliases
+ alias yt-best="youtube-dl -cif 'bestvideo+bestaudio/best'"
+ alias yt-m4a="youtube-dl -cif 'bestaudio[ext=m4a]'"
alias yt-mp4="youtube-dl -cif 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'"
alias yt-webm="youtube-dl -cif 'bestvideo[ext=webm]+bestaudio[ext=webm]/best[ext=webm]/best'"
- alias yt-m4a="youtube-dl -cif 'bestaudio[ext=m4a]'"
# pfetch stuff
export PF_INFO="ascii title os kernel uptime pkgs memory"