add yt-dlp zsh alias
This commit is contained in:
@@ -86,16 +86,6 @@ in {
|
||||
rebuild = "sh ${home_dir}/.nix/bin/rebuild";
|
||||
perms = "sudo sh ${home_dir}/.nix/bin/fix-perms";
|
||||
|
||||
# --- yt-dlp ---
|
||||
yt-music = ''
|
||||
yt-dlp \
|
||||
-f "bestaudio/best" \
|
||||
--embed-metadata \
|
||||
--embed-thumbnail \
|
||||
--convert-thumbnails jpg \
|
||||
-o "%(playlist_index)02d - %(title)s.%(ext)s"
|
||||
'';
|
||||
|
||||
# --- git ---
|
||||
status = "git status";
|
||||
add = "git add";
|
||||
@@ -111,6 +101,9 @@ in {
|
||||
# zfs
|
||||
dfzfs = "zfs list -r -o name,used,usedsnap,usedds";
|
||||
|
||||
# --- yt-dlp ---
|
||||
yt-music = "noglob yt-dlp -f 'bestaudio/best' --embed-metadata --embed-thumbnail --convert-thumbnails jpg -o '%(playlist_index)02d - %(title)s.%(ext)s'";
|
||||
|
||||
# --- systemd ---
|
||||
stat = "sudo systemctl status";
|
||||
restart = "sudo systemctl restart";
|
||||
@@ -148,6 +141,17 @@ in {
|
||||
alias lf='lfcd'
|
||||
lfcd () {cd "$(command lf -print-last-dir "$@")"}
|
||||
|
||||
# --- yt-dlp ---
|
||||
yt-music() {
|
||||
yt-dlp \
|
||||
-f "bestaudio/best" \
|
||||
--embed-metadata \
|
||||
--embed-thumbnail \
|
||||
--convert-thumbnails jpg \
|
||||
-o "%(playlist_index)02d - %(title)s.%(ext)s" \
|
||||
"$@"
|
||||
}
|
||||
|
||||
'';
|
||||
|
||||
syntaxHighlighting = {
|
||||
|
||||
Reference in New Issue
Block a user