aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlos Ratis <dastergon@gentoo.org>2014-05-14 21:46:05 +0300
committerPavlos Ratis <dastergon@gentoo.org>2014-05-19 12:49:04 +0300
commit80b45fb3220bedab9c42d4d9fe27cdce876a6075 (patch)
tree758582c7b41506f4a9d1ee54a2b9f3c46a104b21 /testpath
parentfix missed quotes (diff)
downloadgentoo-keys-80b45fb3220bedab9c42d4d9fe27cdce876a6075.tar.gz
gentoo-keys-80b45fb3220bedab9c42d4d9fe27cdce876a6075.tar.bz2
gentoo-keys-80b45fb3220bedab9c42d4d9fe27cdce876a6075.zip
add zsh support in testpath
Diffstat (limited to 'testpath')
-rw-r--r--testpath11
1 files changed, 7 insertions, 4 deletions
diff --git a/testpath b/testpath
index b1bc173..3bf8bde 100644
--- a/testpath
+++ b/testpath
@@ -11,7 +11,10 @@
# $ source ./testpath
# $ esearch some-package
-
-export PATH="$(dirname $BASH_SOURCE[0])/../pyGPG/bin:$(dirname $BASH_SOURCE[0])/bin:${PATH}"
-
-export PYTHONPATH="$(dirname $BASH_SOURCE[0])/../pyGPG/:$(dirname $BASH_SOURCE[0])/../ssl-fetch/:$(dirname $BASH_SOURCE[0])/:${PYTHONPATH}"
+if [[ "$SHELL" =~ "zsh" ]]; then
+ export PATH="$(dirname $0)/../pyGPG/bin:$(dirname $0)/bin:${PATH}"
+ export PYTHONPATH="$(dirname $0)/../pyGPG/:$(dirname $0)/../ssl-fetch/:$(dirname $0)/:${PYTHONPATH}"
+else
+ export PATH="$(dirname $BASH_SOURCE[0])/../pyGPG/bin:$(dirname $BASH_SOURCE[0])/bin:${PATH}"
+ export PYTHONPATH="$(dirname $BASH_SOURCE[0])/../pyGPG/:$(dirname $BASH_SOURCE[0])/../ssl-fetch/:$(dirname $BASH_SOURCE[0])/:${PYTHONPATH}"
+fi