aboutsummaryrefslogtreecommitdiff
path: root/README
blob: 3b4966764e50e41c270012066d098ac952f94ed4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
1. Put multihome in your path (i.e. ~/bin)
2. Depending on your shell, put the following at the top of its initialization
file.

CSH (.cshrc):

setenv PATH ${HOME}/bin:${PATH}
set MULTIHOME=`which multihome`
if ( -x $MULTIHOME ) then
    # Destroy environment
    env -i
    # Resassign HOME
    eval `$MULTIHOME`
    if ( "$HOME" != "$HOME_ORIG" ) then
        cd $HOME
        source ~/.cshrc
    endif
endif


BASH (.bash_profile):

export PATH=$HOME/bin:$PATH
MULTIHOME=`which multihome`
if [ -x $MULTIHOME ]; then
    HOME_ORIG=$HOME
    # Destroy environment
    env -i
    # Resassign HOME
    eval `$MULTIHOME`
    if [[ "$HOME" != "$HOME_ORIG" ]]; then
        cd $HOME
        source ~/.bash_profile
    fi  
fi