add yt-dlp zsh alias
This commit is contained in:
@@ -86,16 +86,6 @@ in {
|
|||||||
rebuild = "sh ${home_dir}/.nix/bin/rebuild";
|
rebuild = "sh ${home_dir}/.nix/bin/rebuild";
|
||||||
perms = "sudo sh ${home_dir}/.nix/bin/fix-perms";
|
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 ---
|
# --- git ---
|
||||||
status = "git status";
|
status = "git status";
|
||||||
add = "git add";
|
add = "git add";
|
||||||
@@ -111,6 +101,9 @@ in {
|
|||||||
# zfs
|
# zfs
|
||||||
dfzfs = "zfs list -r -o name,used,usedsnap,usedds";
|
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 ---
|
# --- systemd ---
|
||||||
stat = "sudo systemctl status";
|
stat = "sudo systemctl status";
|
||||||
restart = "sudo systemctl restart";
|
restart = "sudo systemctl restart";
|
||||||
@@ -148,6 +141,17 @@ in {
|
|||||||
alias lf='lfcd'
|
alias lf='lfcd'
|
||||||
lfcd () {cd "$(command lf -print-last-dir "$@")"}
|
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 = {
|
syntaxHighlighting = {
|
||||||
|
|||||||
Reference in New Issue
Block a user