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

Offline dink

  • Administrator
  • *****
  • Posts: 5014
  • Karma: +449/-1
  • pie? I nearly bought one!
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