Allow reading manpages by using F1.

This commit is contained in:
Konrad Borowski 2013-10-27 17:30:07 +01:00 committed by David Adam
parent fe3bca3a88
commit c0ad54fe02

View file

@ -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'