diff options
Diffstat (limited to 'init/init.sh')
-rw-r--r-- | init/init.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/init/init.sh b/init/init.sh new file mode 100644 index 0000000..804d511 --- /dev/null +++ b/init/init.sh @@ -0,0 +1,12 @@ +# Set location of multihome to avoid PATH lookups +MULTIHOME="%s" +if [ -x "$MULTIHOME" ]; then + # Save HOME + HOME_OLD="$HOME" + # Redeclare HOME + HOME="$($MULTIHOME)" + # Switch to new HOME + if [ "$HOME" != "$HOME_OLD" ]; then + cd "$HOME" + fi +fi |