dotfiles/fish/functions/sudo-execute.fish
2020-11-04 17:35:19 +01: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