aboutsummaryrefslogtreecommitdiff
path: root/init/init.csh
diff options
context:
space:
mode:
Diffstat (limited to 'init/init.csh')
-rw-r--r--init/init.csh12
1 files changed, 12 insertions, 0 deletions
diff --git a/init/init.csh b/init/init.csh
new file mode 100644
index 0000000..5c370c7
--- /dev/null
+++ b/init/init.csh
@@ -0,0 +1,12 @@
+# Set location of multihome to avoid PATH lookups
+setenv MULTIHOME "%s"
+if ( -x "$MULTIHOME" ) then
+ # Save HOME
+ setenv HOME_OLD "$HOME"
+ # Redeclare HOME
+ setenv HOME "`$MULTIHOME`"
+ # Switch to new HOME
+ if ( "$HOME" != "$HOME_OLD" ) then
+ cd "$HOME"
+ endif
+endif