aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2014-02-10 16:57:24 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2014-02-10 16:57:24 -0500
commit399456983e7e57b5afb28b2a39e95782fd4c36c1 (patch)
tree21f4dbc74aeb261c8aee3b8192a7d3007f8fabae /README
parentb366d871b4f4b629c8963b358c309fd4b3c0f257 (diff)
parentb2fe4220a089b69ffc6190adb085a37ef2a515ca (diff)
downloadmultihome-399456983e7e57b5afb28b2a39e95782fd4c36c1.tar.gz
Merge branch 'master' of bitbucket.org:jhunkeler/multihome
Diffstat (limited to 'README')
-rw-r--r--README85
1 files changed, 63 insertions, 22 deletions
diff --git a/README b/README
index 8835f3d..c442403 100644
--- a/README
+++ b/README
@@ -1,31 +1,72 @@
-1. Put multihome in your path
+## Installation ##
+1. Place multihome in your path (i.e. ~/bin)
+
2. Depending on your shell, put the following at the top of its initialization
file.
-CSH (.cshrc):
-
-if ( -f ~/bin/multihome ) then
- # Destroy environment
- env -i
- # Resassign HOME
- eval `~/bin/multihome`
- if ( -d $HOME ) then
- cd $HOME
- endif
- source ~/.cshrc
+CSH (/home/$USER/.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):
+BASH (/home/$USER/.bash_profile):
-if [ -f ~/bin/multihome ]; then
- # Destroy environment
- env -i
- # Resassign HOME
- eval `~/bin/multihome`
- if [ -d "$HOME" ]; then
- cd $HOME
- fi
- source ~/.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
+
+## Configuration ##
+
+1. Create /home/$USER/.homerc file
+
+
+### Options for .homerc ###
+
+1. cluster_force=true|false
+Type: Boolean
+Default: false
+Description:
+ Setting this "true" creates a stand-alone home directory for every machine under the "standard" cluster directory.
+Example:
+ cluster_force=false
+
+
+2. clusters=( host_pattern [host_pattern ... ] )
+Type: Array
+Default: Empty
+Description:
+ Hostname substrings that denote particular clusters
+Example:
+ cluster=( ops dev test prod )
+
+
+3. transfer_env=( file [file ...] )
+Type: Array
+Default: .*profile .*login .*cshrc* .bash* .ssh .Xauthority
+Description:
+ Files and/or directories to be copied from /home/$USER into the new home structure.
+ These files are *NOT* linked back to /home/$USER. *All* modifications are independent for each home directory.
+Example:
+ transfer_env=( .*profile .*login .*cshrc* .bash* .ssh .Xauthority )