diff --git a/fish/functions/sudo.fish b/fish/functions/sudo.fish new file mode 100644 index 0000000..726ec57 --- /dev/null +++ b/fish/functions/sudo.fish @@ -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