aboutsummaryrefslogtreecommitdiff
path: root/unix/hlib/setup.sh
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /unix/hlib/setup.sh
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'unix/hlib/setup.sh')
-rwxr-xr-xunix/hlib/setup.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/unix/hlib/setup.sh b/unix/hlib/setup.sh
new file mode 100755
index 00000000..fc96eeb6
--- /dev/null
+++ b/unix/hlib/setup.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# Allow a previously defined $iraf to be used.
+if [ -n $iraf ]; then
+ export iraf=/iraf/iraf/
+fi
+
+# Allow a previously defined $IRAFARCH to be used.
+if [ -n $IRAFARCH ]; then
+ export IRAFARCH=`$iraf/unix/hlib/irafarch.sh -actual`
+fi
+source $iraf/unix/hlib/irafuser.sh
+
+export PATH=$HOME/.iraf/bin:${PATH}
+
+# The world'd most obvious alias ....
+alias iraf="xgterm -e cl &"
+