Added sudo function

This commit is contained in:
morten committed 2024-01-09 12:07:18 +01:00
1 parent d3d8a172d3
commit c45030a841
2 files changed
+11

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
function sudo -d "sudo wrapper that handles aliases"
if functions -q -- $argv[1]
set -l new_args (string join ' ' -- (string escape -- $argv))
set argv fish -c "$new_args"
end
command sudo $argv
end