Created
March 8, 2016 11:47
-
-
Save emilsoman/71f1f5a5c2622605fff9 to your computer and use it in GitHub Desktop.
When exit status of zeus is 2, fix tty and retry.
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
zeus () { | |
ARGS=$@; | |
command zeus "$@"; | |
ZE_EC=$?; | |
if [ $ZE_EC = 2 ]; then | |
stty sane; | |
zeus ${=ARGS}; | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment