view unixSoft/otherbin/emacs.sh @ 388:c35759aceed4

emacs: add a hook to handle ANSI colors in compilation buffers Some tools just blindly assume they're printing to a color-supporting terminal. Since fixing them is probably impractical, we'll just work around their stupidity.
author Augie Fackler <raf@durin42.com>
date Mon, 01 Feb 2016 17:30:54 -0500
parents b403402153b5
children 7983184eb8d8
line wrap: on
line source

#!/bin/sh
if [ "`uname`" = "Darwin" ] ; then
    open -a emacs "$@"
else
    emacs -nw "$@"
fi