Fix F1 binding to work with multiple tokens.

This commit is contained in:
Konrad Borowski 2014-08-30 11:18:49 +02:00
parent f8b21fe199
commit 1d0279eac5

View file

@ -112,7 +112,7 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
bind \ed kill-word
# Allow reading manpages by pressing F1
bind $argv -k f1 'man (basename (commandline -po; echo))[1] ^/dev/null; or echo -n \a'
bind $argv -k f1 'man (basename (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 $argv \ep '__fish_paginate'