]> git.phdru.name Git - bookmarks_db.git/blobdiff - set-path
Remove absolute directory ~/lib to make it portable
[bookmarks_db.git] / set-path
diff --git a/set-path b/set-path
new file mode 100644 (file)
index 0000000..43ff756
--- /dev/null
+++ b/set-path
@@ -0,0 +1,10 @@
+START_DIR="`pwd`"
+cd "`dirname \"$0\"`"
+CWD="`pwd`"
+cd "$START_DIR"
+if echo "$PATH" | grep -vq "\(^\|:\)$CWD\(:\|$\)"; then
+   PATH="$CWD:$PATH"
+fi
+START_DIR=''
+CWD=''
+unset START_DIR CWD