feat: add sudo!! to fish

This commit is contained in:
Fabio Lenherr / DashieTM 2023-02-26 02:49:50 +01:00
parent 1c069dd75e
commit 782030a5c3

View file

@ -6,7 +6,14 @@ end
# Utility functions for zoxide.
#
set fish_greeting
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
alias ls='lsd'
alias :q='exit'
alias gh='git push origin'