๐Ÿ”’ Backup for my config files
dotfiles
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update ytdx function

kacaii 8f068a15 546fbc0a

+23 -5
+2 -1
.config/fish/functions/fish_should_add_to_history.fish
··· 3 3 "^jj " \ 4 4 "^psql " \ 5 5 "^xh " \ 6 - "^yt-dlp " 6 + "^yt-dlp " \ 7 + "^ytdx " 7 8 8 9 for hidden in $hidden_list 9 10 string match -qr $hidden -- "$argv"; and return 1
+21
.config/fish/functions/ytdx.fish
··· 1 + function ytdx -d "Save an album" 2 + if not command -q yt-dlp 3 + echo "yt-dlp is not available in PATH" 4 + end 5 + 6 + if not command -q xh 7 + echo "xh is not available in PATH" 8 + end 9 + 10 + # Check for xh 11 + if test ( count $argv ) -eq 0 12 + echo "Please provide a URL" 13 + return 1 14 + end 15 + 16 + yt-dlp -t sleep \ 17 + -x --audio-format flac --audio-quality 0 \ 18 + --embed-metadata --embed-thumbnail \ 19 + -o "%(album)s/%(track_number,playlist_index)s - %(title)s.%(ext)s" \ 20 + $argv[1] 21 + end
-4
.config/fish/modules/abbr.fish
··· 12 12 abbr ff fastfetch 13 13 abbr freeze "freeze --config user" 14 14 abbr v nvim 15 - abbr ytdx "\ 16 - yt-dlp -t sleep \ 17 - -x --audio-format flac --audio-quality 0 \ 18 - --embed-metadata --embed-thumbnail" 19 15 20 16 abbr man batman 21 17 abbr rg batgrep