Hacker News new | ask | show | jobs
Slashing My ".bashrc" in Half (bitecode.dev)
1 points by WillDaSilva 490 days ago
1 comments

> alias download_mp3="uvx --with yt-dlp[default,curl-cffi] yt-dlp@latest --extract-audio --audio-format mp3"

If you use yt-dlp frequently, why not keep it set up in a permanent venv, with an executable on the path? That's what I do (via Pipx). Lets me use a variety of command options while reasoning about the command normally.

I would assume because the tool is updated frequently, and has a tendency to not work properly if you aren't using the latest version.
Ah, I just `pipx update yt-dlp` when that happens.