Author Topic: git diff pagination annoyance (git r dun!)  (Read 41 times)

Offline dink

  • Administrator
  • *****
  • Posts: 2727
  • Karma: +229/-0
  • feed the horse yumyum
git diff pagination annoyance (git r dun!)
« on: January 14, 2019, 10:54:01 pm »
Here's a tip that might be helpful to those that work under mingw shell.  doing a "git diff ." to see what was changed has a really nice more-like pagination, but when it gets to the end of the listing, it will "get stuck" at [END] prompt, requiring you to press 'q' to get back to the commandline.
To get rid of this annoying end prompt, edit \mingw\msys\1.0\etc\profile and add this line to the end of the file:
Code: [Select]
export LESS="$LESS -FRXKE"

that's all :)

best regards,
- dink