]> arthur.barton.de Git - ax-zsh.git/commitdiff
less: Hide "ps: stdin: not a terminal" when using lesspipe.sh
authorAlexander Barton <alex@barton.de>
Sat, 22 Jan 2022 12:57:59 +0000 (13:57 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 22 Jan 2022 12:57:59 +0000 (13:57 +0100)
default_plugins/less/less.zprofile

index 6e3bbbf520e805684ecfbc83ed8e18097dc17e44..aa3d17c9226b1853e90c086ffbbdf49c78054e75 100644 (file)
@@ -21,5 +21,5 @@ if (( $+commands[lesspipe] )); then
 elif (( $+commands[lesspipe.sh] )); then
        # Silence lesspipe(1), see <https://github.com/wofr06/lesspipe/issues/21>
        export LESSQUIET=1
-       eval "$(lesspipe.sh)"
+       eval "$(lesspipe.sh 2>/dev/null)"
 fi