mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 02:31:18 -03:00
prepend doas; instead of sudo; if exists
This commit is contained in:
committed by
Mahmoud Al-Qudsi
parent
4e19bfb5ed
commit
a57b09623e
@@ -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 "fish_commandline_prepend sudo"
|
bind --preset $argv \es "if command -q sudo; fish_commandline_prepend sudo; else if command -q doas; fish_commandline_prepend doas; 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
|
||||||
|
|||||||
Reference in New Issue
Block a user