From 16a7b26fd53731370708e30fc8fd81b5fc331e57 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 15 Aug 2022 18:31:22 +0200 Subject: Initial commit --- functions/sudo-execute.fish | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 functions/sudo-execute.fish (limited to 'functions/sudo-execute.fish') diff --git a/functions/sudo-execute.fish b/functions/sudo-execute.fish new file mode 100644 index 0000000..3e3a463 --- /dev/null +++ b/functions/sudo-execute.fish @@ -0,0 +1,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 -- cgit