Move the home directory to $USERPROFILE

Windows users already have a home directory.  We might just as well use
it.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin 2007-10-04 18:51:23 +01:00 коммит произвёл Steffen Prohaska
Родитель 3f30b79b69
Коммит e5842e8b0e
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -29,7 +29,7 @@ fi
# Set up USER's home directory
if [ -z "$HOME" ]; then
HOME="/home/$LOGNAME"
HOME="$USERPROFILE"
fi
export PATH="$HOME/bin:$PATH"
@ -102,6 +102,7 @@ This is a minimal MSYS environment to work on Git.
$MESSAGE
EOF
cd "$HOME"
}
test -f /etc/motd && sed "s/\$MESSAGE/$MESSAGE/" < /etc/motd
@ -123,4 +124,3 @@ esac
. /git/contrib/completion/git-completion.bash
export LESS=-FRSX
cd "$HOME"

Просмотреть файл

@ -126,7 +126,8 @@ proc installGit {} {
# TODO: incorporate git-cheetah
foreach location $destinations {
exec bin/create-shortcut.exe --work-dir $currentDirectory \
exec bin/create-shortcut.exe \
--work-dir "%USERPROFILE%" \
--icon-file $currentDirectory/etc/git.ico \
--arguments "--login -i" \
$currentDirectory/bin/sh.exe $location/Git\ Shell.lnk