From c48e56e765f1974af28e3a89d08e63768ff75e31 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 14 Jan 2014 21:41:26 +0400 Subject: [PATCH] Fixed a bug: use $0, not the current dir --- set-path | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/set-path b/set-path index 04dc7c5..b5051bc 100644 --- a/set-path +++ b/set-path @@ -1,4 +1,5 @@ -CWD="`pwd`" +CWD="`dirname \"$0\"`" +CWD="`abspath.py \"$CWD\"`" if echo "$PATH" | grep -vq "\(^\|:\)$CWD\(:\|$\)"; then PATH="$CWD:$PATH" fi -- 2.39.5