From c0ad54fe02d0631beeafd5208866dc52146e94a2 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Sun, 27 Oct 2013 17:30:07 +0100 Subject: [PATCH] Allow reading manpages by using F1. --- share/functions/fish_default_key_bindings.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish index 44821f36c..7121db388 100644 --- a/share/functions/fish_default_key_bindings.fish +++ b/share/functions/fish_default_key_bindings.fish @@ -99,6 +99,9 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis bind \ed 'set -l cmd (commandline); if test -z "$cmd"; echo; dirh; commandline -f repaint; else; commandline -f kill-word; end' bind \cd delete-or-exit + # Allow reading manpages by pressing F1 + bind -k f1 'man (commandline -po; echo)[1] ^/dev/null; or echo -n \a' + # This will make sure the output of the current command is paged using the less pager when you press Meta-p bind \ep '__fish_paginate'