From 98e9c8abedd2097813bcd8052570dbb6ca6659fd Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 3 Feb 2022 17:20:33 +0100 Subject: [PATCH] less: Display ANSI colors by default --- .config/zsh/.zprofile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 7085dd9..b63f9af 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -73,7 +73,11 @@ if (( $+commands[less] )); then export LESS_TERMCAP_us=$'\e[1;4;31m' # Enable mouse wheel support - export LESS="--mouse --wheel-lines=3" + LESS+="${LESS:+ }--mouse --wheel-lines=3" + # Display ANSI color escape sequences + LESS+="${LESS:+ }-R" + + export LESS fi # Show also hidden files per default but ignore files in '.git' directories.