Options for “less” without word wrapping and one-character horizontal scroll

Today, all of a sudden, I thought that less doesn’t function, by default, the way I would like. So I read the manual page. These options will make “less” not wrap long lines and also will make it scroll horizontally one character at a time, instead of half the screen width. This way it’s easier to follow which long line is which.

As root, add this line to /etc/bash.bashrc.local

alias less="less --chop-long-lines --shift 1"

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s