Open iaacornus opened 1 year ago
restore "sudo !!" command in fish (You could just use Alt+S instead)
printf """
# restore "sudo !!"
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""" >> ~/.config/fish/config.fish
restore "sudo !!" command in fish (You could just use Alt+S instead)
printf """ # restore "sudo !!" 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""" >> ~/.config/fish/config.fish
i'm not well aware of the sudo !!
command
This is not nessecary. Alt+s does exactly that but better. fish is actually really awesome, thanks for the suggestion! and you can install it in all distroboxes too and use it there!
Here are some configs