Update
This commit is contained in:
8
.config/fish/functions/sudo.fish
Normal file
8
.config/fish/functions/sudo.fish
Normal file
@@ -0,0 +1,8 @@
|
||||
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
|
||||
Reference in New Issue
Block a user