Created
May 25, 2016 08:12
-
-
Save zoozalp/b73ac645bf22f31b65e1211b84454181 to your computer and use it in GitHub Desktop.
put the following code into ~/.config/fish/config.fish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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