stop aws cli help command from clearing screen

I love manpages. I ❤️ manpages

I like to search the results of man, and I love that many command line tools use a man-style document with their help system. My system is using `less` as it’s man pager, and it’s help pager, but ever since I started using oh-my-zhs my screen has been clearing when I <Esc> :q! after finding the answer I wanted, which means I can’t just look at the results and type them into the shell.

I wanted to thank Chris F Caroll for this answer, because it’s exactly the solution to the problem I was having

export MANPAGER='/usr/bin/less -isXF'

-X is your friend for telling less just to keep in the screen

Leave a Reply

Your email address will not be published.