mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 00:47:30 +00:00
f10de5f653
At the moment calling __fish_prepend_sudo multiple times does not toggle sudo, and also unnecessarily uses the `-c` flag to `commandline` to see if the first token on the commandline is "sudo". This change removes the `-c` switch and also toggles "sudo" on multiple calls to __fish_prepend_sudo, while maintaining the cursor position and while maintaining any spaces between "sudo" and the next token on the commandline. |
||
---|---|---|
.. | ||
completions | ||
functions | ||
groff | ||
tools | ||
__fish_build_paths.fish.in | ||
config.fish | ||
lynx.lss |