mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-22 02:35:14 +08:00
Use basename for man argument
This protects from providing paths to man, like `./a.out`.
This commit is contained in:
parent
c0ad54fe02
commit
ba2fcd9dae
@ -100,7 +100,7 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
|
||||
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'
|
||||
bind -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 \ep '__fish_paginate'
|
||||
|
Loading…
x
Reference in New Issue
Block a user