mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
support prepending please instead of sudo/doas
This commit is contained in:
parent
c6756e9324
commit
e32e6daced
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ function __fish_shared_key_bindings -d "Bindings shared between emacs and vi mod
|
||||||
bind --preset $argv \ed 'set -l cmd (commandline); if test -z "$cmd"; echo; dirh; commandline -f repaint; else; commandline -f kill-word; end'
|
bind --preset $argv \ed 'set -l cmd (commandline); if test -z "$cmd"; echo; dirh; commandline -f repaint; else; commandline -f kill-word; end'
|
||||||
bind --preset $argv \cd delete-or-exit
|
bind --preset $argv \cd delete-or-exit
|
||||||
|
|
||||||
bind --preset $argv \es "if command -q sudo; fish_commandline_prepend sudo; else if command -q doas; fish_commandline_prepend doas; end"
|
bind --preset $argv \es 'for cmd in sudo doas please; if command -q $cmd; fish_commandline_prepend $cmd; break; end; end'
|
||||||
|
|
||||||
# Allow reading manpages by pressing F1 (many GUI applications) or Alt+h (like in zsh).
|
# Allow reading manpages by pressing F1 (many GUI applications) or Alt+h (like in zsh).
|
||||||
bind --preset $argv -k f1 __fish_man_page
|
bind --preset $argv -k f1 __fish_man_page
|
||||||
|
|
Loading…
Reference in a new issue