fish-shell/share/functions/__fish_prepend_sudo.fish
Johannes Altmanninger 7c2dd694e0 Provide functions to toggle commandline prefix/suffix
This introduces two functions to
- toggle a process prefix, used for adding "sudo"
- add a job suffix, used for adding "&| less"

Not sure if they are very useful; we'll see.

Closes 
2021-06-23 20:51:20 +02:00

4 lines
183 B
Fish

function __fish_prepend_sudo -d " DEPRECATED: use fish_commandline_prepend instead. Prepend 'sudo ' to the beginning of the current commandline"
fish_commandline_prepend sudo
end