--- imach/distributions/osx/imach 2018/04/21 21:11:45 1.1 +++ imach/distributions/osx/imach 2018/04/21 21:13:27 1.2 @@ -1,8 +1,19 @@ #!/bin/bash +# Borrowed to gnuplot +# record prior dir +STARTDIR=`pwd` -read -d '' EXECUTE < /dev/null; then + shift 1 +fi + +cd "$STARTDIR" + +open -a Terminal "$BINDIR"/imach "$@"