``` function sudo if test "$argv" = !! eval command sudo $history[1] else command sudo $argv end end ```
This works for `sudo !!`
https://github.com/srynot4sale/dotfiles/blob/master/fish/fun...