diff options
author | jaseg <git@jaseg.de> | 2022-08-15 18:31:22 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-08-15 18:31:22 +0200 |
commit | 16a7b26fd53731370708e30fc8fd81b5fc331e57 (patch) | |
tree | a5d824ec11c4a6934422f7e7553b4c207016eba4 /functions/sudo-execute.fish | |
download | useful-fish-16a7b26fd53731370708e30fc8fd81b5fc331e57.tar.gz useful-fish-16a7b26fd53731370708e30fc8fd81b5fc331e57.tar.bz2 useful-fish-16a7b26fd53731370708e30fc8fd81b5fc331e57.zip |
Initial commitmain
Diffstat (limited to 'functions/sudo-execute.fish')
-rw-r--r-- | functions/sudo-execute.fish | 5 |
1 files changed, 5 insertions, 0 deletions
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 |