Last active
December 29, 2015 18:41
-
-
Save nothingmuch/fc80e02427ad3bf22b76 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
#!/bin/bash | |
#https://wiki.archlinux.org/index.php/Core_utilities#Colored_output_when_reading_from_stdin | |
t=$(tempfile) | |
trap "rm '$t'" EXIT | |
script -q -c "$*" "$t" > /dev/null | |
stty sane | |
less "$t" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment