зеркало из https://github.com/github/msysgit.git
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:
Родитель
3f30b79b69
Коммит
e5842e8b0e
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче