Skip to content

Instantly share code, notes, and snippets.

@zoozalp
Created May 25, 2016 08:12
Show Gist options
  • Save zoozalp/b73ac645bf22f31b65e1211b84454181 to your computer and use it in GitHub Desktop.
Save zoozalp/b73ac645bf22f31b65e1211b84454181 to your computer and use it in GitHub Desktop.
put the following code into ~/.config/fish/config.fish
function sudo
if test "$argv" = !!
eval command sudo $history[1]
else
command sudo $argv
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment