summaryrefslogtreecommitdiffhomepage
path: root/youtube-dl.plugin.zsh
diff options
context:
space:
mode:
authorMatthew Franglen <[email protected]>2014-01-30 20:44:16 +0000
committerMatthew Franglen <[email protected]>2014-01-30 20:44:16 +0000
commitefd02e858ad49fd1dbc539e3d495db8b719f194b (patch)
treece1e17bf2a79a2c0f4e0bf14040eb066d2ed1fa1 /youtube-dl.plugin.zsh
parentc8d8ec8567bc1cb52adb3aacebf990fe3c4db753 (diff)
downloadyoutube-dl-efd02e858ad49fd1dbc539e3d495db8b719f194b.tar.gz
youtube-dl-efd02e858ad49fd1dbc539e3d495db8b719f194b.zip
Fix #2280: Antigen now links to python script
Diffstat (limited to 'youtube-dl.plugin.zsh')
-rw-r--r--youtube-dl.plugin.zsh7
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube-dl.plugin.zsh b/youtube-dl.plugin.zsh
index 2a1d7527e..4edab5214 100644
--- a/youtube-dl.plugin.zsh
+++ b/youtube-dl.plugin.zsh
@@ -18,6 +18,7 @@
# code is documented here:
# https://github.com/zsh-users/antigen#notes-on-writing-plugins
-# This specific script just adds the downloaded folder to the end of the $PATH,
-# which allows the contained youtube-dl executable to be found.
-export PATH=${PATH}:$(dirname $0)
+# This specific script just aliases youtube-dl to the python script that this
+# library provides. This requires updating the PYTHONPATH to ensure that the
+# full set of code can be located.
+alias youtube-dl="PYTHONPATH=$(dirname $0) $(dirname $0)/bin/youtube-dl"