fish-shell/doc_src
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
..
_static doc: make <kbd> style more prominent 2020-03-19 18:22:40 +01:00
cmds Add status dirname and status basename convenience commands 2020-06-04 18:23:32 +02:00
CHANGELOG.rst Add CHANGELOG to the docs 2020-05-30 10:07:21 +02:00
commands.rst We no longer have two doc systems, move sphinx_doc_src back to doc_src 2020-02-19 17:00:35 -08:00
completions.rst docs: don't quote code snippets 2020-04-13 22:56:22 +02:00
conf.py Add CHANGELOG to the docs 2020-05-30 10:07:21 +02:00
design.rst docs: don't quote code snippets 2020-04-13 22:56:22 +02:00
faq.rst Let __fish_prepend_sudo use the last commandline if there is no current one (#7079) 2020-06-04 18:25:02 +02:00
fish_indent_lexer.py We no longer have two doc systems, move sphinx_doc_src back to doc_src 2020-02-19 17:00:35 -08:00
index.rst Let __fish_prepend_sudo use the last commandline if there is no current one (#7079) 2020-06-04 18:25:02 +02:00
license.rst chore: bump copyright year 2019 → 2020 2020-03-14 14:03:09 -07:00
tutorial.rst docs/tutorial: Recommend fish_add_path over $fish_user_paths 2020-05-29 20:51:09 +02:00