1 |
commit: 80b45fb3220bedab9c42d4d9fe27cdce876a6075 |
2 |
Author: Pavlos Ratis <dastergon <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 14 18:46:05 2014 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Mon May 19 09:49:04 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=80b45fb3 |
7 |
|
8 |
add zsh support in testpath |
9 |
|
10 |
--- |
11 |
testpath | 11 +++++++---- |
12 |
1 file changed, 7 insertions(+), 4 deletions(-) |
13 |
|
14 |
diff --git a/testpath b/testpath |
15 |
index b1bc173..3bf8bde 100644 |
16 |
--- a/testpath |
17 |
+++ b/testpath |
18 |
@@ -11,7 +11,10 @@ |
19 |
# $ source ./testpath |
20 |
# $ esearch some-package |
21 |
|
22 |
- |
23 |
-export PATH="$(dirname $BASH_SOURCE[0])/../pyGPG/bin:$(dirname $BASH_SOURCE[0])/bin:${PATH}" |
24 |
- |
25 |
-export PYTHONPATH="$(dirname $BASH_SOURCE[0])/../pyGPG/:$(dirname $BASH_SOURCE[0])/../ssl-fetch/:$(dirname $BASH_SOURCE[0])/:${PYTHONPATH}" |
26 |
+if [[ "$SHELL" =~ "zsh" ]]; then |
27 |
+ export PATH="$(dirname $0)/../pyGPG/bin:$(dirname $0)/bin:${PATH}" |
28 |
+ export PYTHONPATH="$(dirname $0)/../pyGPG/:$(dirname $0)/../ssl-fetch/:$(dirname $0)/:${PYTHONPATH}" |
29 |
+else |
30 |
+ export PATH="$(dirname $BASH_SOURCE[0])/../pyGPG/bin:$(dirname $BASH_SOURCE[0])/bin:${PATH}" |
31 |
+ export PYTHONPATH="$(dirname $BASH_SOURCE[0])/../pyGPG/:$(dirname $BASH_SOURCE[0])/../ssl-fetch/:$(dirname $BASH_SOURCE[0])/:${PYTHONPATH}" |
32 |
+fi |