aboutsummaryrefslogtreecommitdiff
path: root/init/init.csh
blob: 5c370c7430cfed1021f77516cf7936140057dbd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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