useful-fish/functions/sudo-execute.fish
2022-08-15 18:31:22 +02:00

5 lines
246 B
Fish

function sudo-execute -d "Command line editor function that prepends the current commandline with \"sudo\" and executes it afterwards"
commandline sudo\ (commandline | sed 's/^\W*sudo\?\W*//')
commandline -f repaint
commandline -f execute
end