Skip to content

Instantly share code, notes, and snippets.

@david-wm-sanders
Created October 29, 2018 12:03
Show Gist options
  • Save david-wm-sanders/6d34fd848dc5748a1607d6409ff14858 to your computer and use it in GitHub Desktop.
Save david-wm-sanders/6d34fd848dc5748a1607d6409ff14858 to your computer and use it in GitHub Desktop.
Re-run the last command with sudo in fish shell
function !!
eval sudo $history[1]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment