<!-- Please tell us which fish version you are using by executing the following: fish --version echo $version Please tell us which operating system and terminal you are using. The output of `uname -a` and `echo $TERM` may be helpful in this regard although other commands might be relevant in your specific situation. Please tell us if you tried fish without third-party customizations by executing this command and whether it affected the behavior you are reporting: sh -c 'env HOME=$(mktemp -d) XDG_CONFIG_HOME= fish' Tell us how to reproduce the problem. Including an asciinema.org recording is useful for problems that involve the visual display of fish output such as its prompt. --> **YOUR TEXT HERE** fish, version 3.6.1 Linux archlinux 6.5.9-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 26 Oct 2023 00:52:20 +0000 x86_64 GNU/Linux ```sh root@archlinux ~# history fish: Unknown command: less /usr/share/fish/functions/history.fish (line 105): builtin history search $search_mode $show_time $max_count $_flag_case_sensitive $_flag_reverse $_flag_null -- $argv | $pager ^~~~~^ in function 'history' ```
Activity
faho commentedon Oct 27, 2023
This means that you do not have
lessinstalled or don't have it in your $PATH, and you don't have a $PAGER set.The easiest fix is to install less, the second to install another pager and
set -g PAGER NameOfThatPager.I suppose we can make a nicer error or fall back to
cat, but it's really a much nicer experience if you have a pager.Add __fish_anypager helper
Add __fish_anypager helper
JQiue commentedon Nov 15, 2023
I didn't install
less, fish should fall back tocat, because most Linux hascatAdd __fish_anypager helper
Add __fish_anypager helper