1

I recently switched from bash to fish. I like it, but I don't know how to exit, when I enter history. How do I do that?

2 Answers 2

3

The history function will show your history in your pager program. This can changed by setting the $PAGER variable, but usually it's a program called less.

And to quit that one, press q. Pressing h will show you the help screen.

If it's not less or something similar (most pagers quit with q, to be honest), then it depends on that program.

1

The history command in the fish shell displays your command line history. It does this in a pager, possibly less or more.

To exit the pager, press q.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .