Skip to content

fish: Unknown command: less #10074

Closed

Description

@JQiue

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

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

  1. faho commented on Oct 27, 2023

    @faho
    Member

    This means that you do not have less installed 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.

  2. added a commit that references this issue on Oct 28, 2023
    32ae389
  3. added a commit that references this issue on Nov 7, 2023
    a78c1f0
  4. JQiue commented on Nov 15, 2023

    @JQiue
    Author

    I didn't install less, fish should fall back to cat, because most Linux has cat

  5. added a commit that references this issue on Nov 20, 2023
    ed489d0
  6. added
    bugSomething that's not working as intended
    on Nov 21, 2023
  7. added this to the fish 3.7.0 milestone on Nov 21, 2023
  8. added a commit that references this issue on Dec 30, 2023
    3ac5317
  9. locked as resolved and limited conversation to collaborators on Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions