From: Alexander Barton Date: Sat, 22 Jan 2022 12:57:59 +0000 (+0100) Subject: less: Hide "ps: stdin: not a terminal" when using lesspipe.sh X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ax-zsh.git;a=commitdiff_plain;h=86279d933804982979f18eb6bb2505ec7f67e55b less: Hide "ps: stdin: not a terminal" when using lesspipe.sh --- diff --git a/default_plugins/less/less.zprofile b/default_plugins/less/less.zprofile index 6e3bbbf..aa3d17c 100644 --- a/default_plugins/less/less.zprofile +++ b/default_plugins/less/less.zprofile @@ -21,5 +21,5 @@ if (( $+commands[lesspipe] )); then elif (( $+commands[lesspipe.sh] )); then # Silence lesspipe(1), see export LESSQUIET=1 - eval "$(lesspipe.sh)" + eval "$(lesspipe.sh 2>/dev/null)" fi