perhaps works better on cygwin

This commit is contained in:
Ville Rantanen
2019-10-10 21:47:08 +03:00
parent 2af0c618f4
commit 22f2cc539b

13
rc
View File

@@ -1,12 +1,9 @@
# source me to enable tools
case "$OSTYPE" in
darwin*)
QTOOLSPATH=$( realpath $( dirname "$BASH_SOURCE" ) )
;;
*)
QTOOLSPATH=$( readlink -f $( dirname "$BASH_SOURCE" ) )
;;
esac
if [[ "$OSTYPE" = "darwin"* ]]; then
QTOOLSPATH=$( realpath $( dirname "$BASH_SOURCE" ) )
else
QTOOLSPATH=$( readlink -f $( dirname "$BASH_SOURCE" ) )
fi
PATH=$PATH:"$QTOOLSPATH"/bin
[[ "$1" = "-f" ]] && PATH="$QTOOLSPATH"/bin:$PATH