Created
June 19, 2013 02:32
-
-
Save nh2/5811275 to your computer and use it in GitHub Desktop.
redo: Saves the last command and runs it again when run with no arguments
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
#!/bin/bash | |
if [[ -z $@ ]]; then bash .redo; else echo $@ > .redo; $@; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment