From 92fc04887c21784efeba30b24ccb87bad2fdb828 Mon Sep 17 00:00:00 2001 From: serxoz Date: Tue, 2 Jan 2024 14:59:36 +0100 Subject: [PATCH] color picker para neovim e 'sudo !!' para fish --- fish/functions/sudo.fish | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 fish/functions/sudo.fish 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