Index ¦ Archives ¦ RSS

less(1) tweaks

Estimated read time: 1 minutes

First, to allow latin{1,2,whatever} accents in the pager to be non-escaped:

export LESSCHARSET="iso8859"

Second, I use:

# F: quit if input is less then one page
# M: no more-like short prompt
# R: accept colors
# X: don't throw away the output after quit under x
export LESS="FMRX"

Finally to send utf8 and other exotic chars in latin2 to stdout in git (OK, this is not strictly related):

git config i18n.logOutputEncoding latin2

Done!

Old:

Author: Andr??s V??r??sk?<91>i <voroskoi@frugalware.org>

New:

Author: András Vörösk?i <voroskoi@frugalware.org>

You can choose... ;-)

© Miklos Vajna. Built using Pelican. Theme by Giulio Fidente on github.