diff --git a/dotfiles/dot_bashrc.tmpl b/dotfiles/dot_bashrc.tmpl index 708be14..0156447 100644 --- a/dotfiles/dot_bashrc.tmpl +++ b/dotfiles/dot_bashrc.tmpl @@ -65,6 +65,11 @@ export LESS="-i -R" export LESSHISTFILE='/dev/null' export LESSHISTSIZE=0 +# Disable the "log" function in less using a lesskey input file. This was +# previously compiled directly using the lesskey binary, but newer versions of +# less are able to read the lesskey input file directly. +export LESSKEYIN="~/.lesskey" + # git prompt related environment variables export GIT_PS1_SHOWDIRTYSTATE='yes' export GIT_PS1_SHOWSTASHSTATE='yes' diff --git a/dotfiles/run_linux-setup.sh.tmpl b/dotfiles/run_linux-setup.sh.tmpl index be361b2..1d4bfa1 100644 --- a/dotfiles/run_linux-setup.sh.tmpl +++ b/dotfiles/run_linux-setup.sh.tmpl @@ -1,6 +1,3 @@ {{ if (eq .chezmoi.os "linux") -}} #!/usr/bin/env bash - -# Compile the ~/.lesskey file in order to disable the less "log" function -lesskey {{ end -}}