Add sue !! function to fish

This commit is contained in:
RealStickman 2020-11-12 16:38:11 +01:00
parent 9ee48ca1da
commit 162577efcc

View File

@ -31,6 +31,15 @@ set VISUAL "/usr/bin/emacs --no-window-system"
# add paths
set fish_user_paths "$HOME/.emacs.d/bin/" $fish_user_paths
# use sudo !! to run the last command as root
function sudo --description "Replacement for Bash 'sudo !!' command to run last command using sudo."
if test "$argv" = !!
eval command sudo $history[1]
else
command sudo $argv
end
end
#update config
alias upconf='~/scripts/arcolinux-config.sh'