Don’t Python scripts need python at the beginning of the command that summons them?
Alternatively, you can make an alias to ~/.bashrc:
alias yt-dl="python3 /path/to/yt-dlp [options] "
And replace [options] for flags you may want to always use, if any. Or delete if you just want the raw script to be tied to a terminal command.
Then reload .bashrc by running either source .bashrc or . .bashrc
Don’t Python scripts need
python
at the beginning of the command that summons them?Alternatively, you can make an alias to ~/.bashrc:
alias yt-dl="python3 /path/to/yt-dlp [options] "
And replace[options]
for flags you may want to always use, if any. Or delete if you just want the raw script to be tied to a terminal command.Then reload .bashrc by running either
source .bashrc
or. .bashrc