Skip to content

Instantly share code, notes, and snippets.

@573
Created March 23, 2011 15:29
Show Gist options
  • Save 573/883286 to your computer and use it in GitHub Desktop.
Save 573/883286 to your computer and use it in GitHub Desktop.
The default msysgit sh exports the TERM variable as dumb, resulting in complicated command line handling

Instead of

%comspec% /c h:\Git\bin\sh.exe --login -i

try to run it with:

%comspec% /c h:\Git\bin\rxvt.exe -e /bin/sh --login -i

And set the environment accordingly, e. g. in .bashrc:

case $TERM in \
 '') export TERM=${TERM:-xterm};; \
esac

etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment