It looks like sys-apps/less puts lesshst and looks for lesskey in the root of the current user's home directory. Appending something the following to /etc/env.d/70less at install time could address this easily enough: LESSHISTFILE=$XDG_CACHE_HOME/lesshst LESSKEY=$XDG_CONFIG_HOME/less/lesskey
Is this backwards compatible? i.e. If we start setting this, is it going to break for users who have it in their homedir? I suspect it will?
Hmm... you might be right. I consider less' history to be disposable but suddenly moving the lesskey (custom key bindings file) might tick some people off. Let me test this a bit.