diff --git a/share/functions/__fish_print_help.fish b/share/functions/__fish_print_help.fish index 066dcd352..0b9f2ab7e 100644 --- a/share/functions/__fish_print_help.fish +++ b/share/functions/__fish_print_help.fish @@ -119,13 +119,13 @@ function __fish_print_help --description "Print help message for the specified f not isatty stdout and set pager cat # cannot use a builtin here # similar to man, but add -F to quit paging when the help output is brief (#6227) - set -xl LESS isrFX + not set -qx LESS + and set -xl LESS isRF # less options: # -i (--ignore-case) search case-insensitively, like man # -s (--squeeze-blank-lines) not strictly necessary since we already do that above - # -r (--raw-control-chars) to display bold, underline and colors + # -R (--RAW-CONTROL-CHARS) to display colors and such # -F (--quit-if-one-screen) to maintain the non-paging behavior for small outputs - # -X (--no-init) not sure if this is needed but git uses it $pager end end diff --git a/share/functions/history.fish b/share/functions/history.fish index 0e0227675..a397e8a88 100644 --- a/share/functions/history.fish +++ b/share/functions/history.fish @@ -93,7 +93,7 @@ function history --description "display or manipulate interactive command histor # screen from clearing on quit, so there is something to see if it exits. # These are two of the options `git` sets through $LESS before starting the pager. not set -qx LESS - and set -x LESS --quit-if-one-screen --no-init + and set -x LESS --quit-if-one-screen not set -qx LV # ask the pager lv not to strip colors and set -x LV -c