Files
config-files/.config/fish/functions/sudo.fish
Roland Thomas 275d157702 Update
2023-02-08 12:56:21 -05:00

9 lines
242 B
Fish

function sudo --description "Replacement for Bash 'sudo !!' command to run last command using sudo."
if test "$argv" = !!
echo sudo $history[1]
eval command sudo $history[1]
else
command sudo $argv
end
end