function ytmp3 --description 'Download YouTube video or playlist as audio' --argument url if test -n "$url" cd ~/Downloads && yt-dlp -f 'ba' -x --audio-format mp3 "$url" -o '%(title)s.%(ext)s' && cd - || return else echo "Please give me a URL." end end