Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to page the output of any command at the Fish shell

📅 2013-Jun-21 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ fish, less, pager, ubuntu ⬩ 📚 Archive

The Fish shell has a convenient shortcut to pass the output of any command to a pager like less. The default keyboard shortcut to do this is Alt-P. That is, type the command and press Alt-P. This adds a | less; at the end of the command.

Tried with: Fish 2.0.0 and Ubuntu 12.04 LTS


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧