made the pack completely portable and wrote relevent bat files to go with it
This commit is contained in:
32
gitportable/etc/profile.d/env.sh
Normal file
32
gitportable/etc/profile.d/env.sh
Normal file
@@ -0,0 +1,32 @@
|
||||
# Add bin path in the home directory ontop of the PATH variable
|
||||
export PATH="$HOME/bin:$PATH"
|
||||
|
||||
# Allow SSH to ask via GUI if the terminal is not usable
|
||||
test -n "$SSH_ASKPASS" || {
|
||||
case "$MSYSTEM" in
|
||||
MINGW64)
|
||||
export DISPLAY=needs-to-be-defined
|
||||
if [ -f /mingw64/bin/git-askpass.exe ]; then
|
||||
export SSH_ASKPASS=/mingw64/bin/git-askpass.exe
|
||||
else
|
||||
export SSH_ASKPASS=/mingw64/libexec/git-core/git-gui--askpass
|
||||
fi
|
||||
;;
|
||||
MINGW32)
|
||||
export DISPLAY=needs-to-be-defined
|
||||
if [ -f /mingw32/bin/git-askpass.exe ]; then
|
||||
export SSH_ASKPASS=/mingw32/bin/git-askpass.exe
|
||||
else
|
||||
export SSH_ASKPASS=/mingw32/libexec/git-core/git-gui--askpass
|
||||
fi
|
||||
;;
|
||||
CLANGARM64)
|
||||
export DISPLAY=needs-to-be-defined
|
||||
if [ -f /clangarm64/bin/git-askpass.exe ]; then
|
||||
export SSH_ASKPASS=/clangarm64/bin/git-askpass.exe
|
||||
else
|
||||
export SSH_ASKPASS=/clangarm64/libexec/git-core/git-gui--askpass
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
Reference in New Issue
Block a user