]> jfr.im git - yt-dlp.git/blame - youtube-dl.plugin.zsh
[skip travis] renaming
[yt-dlp.git] / youtube-dl.plugin.zsh
CommitLineData
cefecac1 1# This allows the youtube-dlc command to be installed in ZSH using antigen.
c8d8ec85
MF
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
5# Antigen documentation:
6# http://antigen.sharats.me/
7# https://github.com/zsh-users/antigen
8
cefecac1 9# Install youtube-dlc:
067aa17e 10# antigen bundle ytdl-org/youtube-dl
c8d8ec85
MF
11# Bundles installed by antigen are available for use immediately.
12
cefecac1 13# Update youtube-dlc (and all other antigen bundles):
c8d8ec85
MF
14# antigen update
15
16# The antigen command will download the git repository to a folder and then
17# execute an enabling script (this file). The complete process for loading the
18# code is documented here:
19# https://github.com/zsh-users/antigen#notes-on-writing-plugins
20
cefecac1 21# This specific script just aliases youtube-dlc to the python script that this
efd02e85
MF
22# library provides. This requires updating the PYTHONPATH to ensure that the
23# full set of code can be located.
cefecac1 24alias youtube-dlc="PYTHONPATH=$(dirname $0) $(dirname $0)/bin/youtube-dlc"