color picker para neovim e 'sudo !!' para fish

This commit is contained in:
serxoz 2024-01-02 14:59:36 +01:00
parent dae451576e
commit 92fc04887c

8
fish/functions/sudo.fish Normal file
View File

@ -0,0 +1,8 @@
function sudo --description "Reemplazo del comando 'sudo !!' de Bash para ejecutar el último comando usando sudo."
if test "$argv" = !!
echo sudo $history[1]
eval command sudo $history[1]
else
command sudo $argv
end
end