Created
September 13, 2017 13:46
-
-
Save Memphizzz/efca187083860a21911620e86a13ca5a to your computer and use it in GitHub Desktop.
This file contains 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 rs | |
set PREV_CMD (history | head -1) | |
echo Running: sudo $PREV_CMD | |
sudo $PREV_CMD | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should work: