Muh dotfiles
This commit is contained in:
7
.config/fish/functions/music.fish
Normal file
7
.config/fish/functions/music.fish
Normal file
@ -0,0 +1,7 @@
|
||||
function music --wraps 'yt-dlp -x --embed-thumbnail --embed-chapters' --description 'Download music with yt-dlp'
|
||||
test -d $argv[-1]; or set -a argv "$XDG_MUSIC_DIR"
|
||||
echo "Downloading into $argv[-1]"
|
||||
|
||||
command yt-dlp --extract-audio --embed-thumbnail --embed-chapters \
|
||||
--output "$argv[-1]/%(title)s.%(ext)s" $argv[..-2]
|
||||
end
|
Reference in New Issue
Block a user