summaryrefslogtreecommitdiff
path: root/functions/sudo-execute.fish
blob: 3e3a463f8a0621e6e57070ba6d90134358184cda (plain)
1
2
3
4
5
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