DEV Community 👩‍💻👨‍💻

DEV Community 👩‍💻👨‍💻 is a community of 967,611 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Steve Klassen (They/Them)
Steve Klassen (They/Them)

Posted on

Git Log Clears Screen

I'm completely new to Mac and one of the things that kept cropping up was the output of a command showing up and then clearing as soon as I exited it (e.g., git log).

I thought I had slain that dragon with a desperate plea to my Twitter timeline, but I was having to add one for each git command for which I didn't want the behavior. And I'm not even entirely sure blowing away paging entirely even made sense.

Enter fullscreen mode Exit fullscreen mode

Finally this morning I happened upon this article from 2014 that had the following suggesting I add it to my .zshrc:

export LESS=-iXFR
Enter fullscreen mode Exit fullscreen mode

Finally it's solved and I could cry happy tears.

Top comments (0)

DEV has this feature:


Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. 🛠