Disclaimer: this code is hosted for legal uses only, such as downloading content you own the rights to but no longer have a local copy of, downloading content under a permissive license, educational use, etc. Also RIAA can **** right off.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1014 B

  1. # This allows the youtube-dl command to be installed in ZSH using antigen.
  2. # Antigen is a bundle manager. It allows you to enhance the functionality of
  3. # your zsh session by installing bundles and themes easily.
  4. # Antigen documentation:
  5. # http://antigen.sharats.me/
  6. # https://github.com/zsh-users/antigen
  7. # Install youtube-dl:
  8. # antigen bundle ytdl-org/youtube-dl
  9. # Bundles installed by antigen are available for use immediately.
  10. # Update youtube-dl (and all other antigen bundles):
  11. # antigen update
  12. # The antigen command will download the git repository to a folder and then
  13. # execute an enabling script (this file). The complete process for loading the
  14. # code is documented here:
  15. # https://github.com/zsh-users/antigen#notes-on-writing-plugins
  16. # This specific script just aliases youtube-dl to the python script that this
  17. # library provides. This requires updating the PYTHONPATH to ensure that the
  18. # full set of code can be located.
  19. alias youtube-dl="PYTHONPATH=$(dirname $0) $(dirname $0)/bin/youtube-dl"