Skip to content

Commit

Permalink
Use the lesskey config file directly
Browse files Browse the repository at this point in the history
The lesskey binary has been deprecated.
  • Loading branch information
marvinpinto committed Feb 26, 2024
1 parent a9c056d commit 8761eb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions dotfiles/dot_bashrc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 0 additions & 3 deletions dotfiles/run_linux-setup.sh.tmpl
Original file line number Diff line number Diff line change
@@ -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 -}}

0 comments on commit 8761eb3

Please sign in to comment.