aboutsummaryrefslogtreecommitdiff
path: root/unix/hlib/setup.csh
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /unix/hlib/setup.csh
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'unix/hlib/setup.csh')
-rwxr-xr-xunix/hlib/setup.csh21
1 files changed, 21 insertions, 0 deletions
diff --git a/unix/hlib/setup.csh b/unix/hlib/setup.csh
new file mode 100755
index 00000000..6a826c75
--- /dev/null
+++ b/unix/hlib/setup.csh
@@ -0,0 +1,21 @@
+#!/bin/csh -f
+
+# Allow a previously defined $iraf to be used.
+if ( ! ( $?iraf )) then
+ setenv iraf /iraf/iraf/
+endif
+
+# Allow a previously defined $IRAFARCH to be used.
+if ( ! ( $?IRAFARCH )) then
+ setenv IRAFARCH `$iraf/unix/hlib/irafarch.csh -actual`
+endif
+source $iraf/unix/hlib/irafuser.csh
+
+set path = ($FAKEHOME/bin $path)
+set cdpath = ($iraf $iraf/pkg $iraf/noao $iraf/sys $iraf/unix $iraf/unix/boot)
+
+# The world'd most obvious alias ....
+alias iraf "xgterm -e cl &"
+
+rehash
+