diff options
author | Pavlos Ratis <dastergon@gentoo.org> | 2014-05-14 21:46:05 +0300 |
---|---|---|
committer | Pavlos Ratis <dastergon@gentoo.org> | 2014-05-19 12:49:04 +0300 |
commit | 80b45fb3220bedab9c42d4d9fe27cdce876a6075 (patch) | |
tree | 758582c7b41506f4a9d1ee54a2b9f3c46a104b21 /testpath | |
parent | fix missed quotes (diff) | |
download | gentoo-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-- | testpath | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |