fish-shell/share
Fabian Homborg e646285bcb
Let __fish_prepend_sudo use the last commandline if there is no current one (#7079)
* docs/faq: Mention prepend_sudo

[ci skip]

* __fish_prepend_sudo: Use $history[1] if commandline is empty

Currently, if you press alt+s with an empty commandline, it inserts
"sudo", which seems fairly useless.

Now, it inserts "sudo " followed by the last history entry, which
makes it a replacement for `sudo !!`.

* docs
2020-06-04 18:25:02 +02:00
..
completions completions: shorten fzf descriptions 2020-06-04 18:24:11 +02:00
functions Let __fish_prepend_sudo use the last commandline if there is no current one (#7079) 2020-06-04 18:25:02 +02:00
groff workaround broken groff man page config 2016-10-19 13:43:04 -07:00
tools check for both wsl1 and wsl2 2020-05-25 13:05:13 +08:00
__fish_build_paths.fish.in
config.fish Don't fire fish_prompt when read is used 2020-05-26 15:24:31 -05:00
lynx.lss Install custom LSS script to /usr/local/share/fish on make install 2017-09-26 14:31:11 -05:00