Skip to content

Instantly share code, notes, and snippets.

@nanasess
Created October 12, 2011 04:32
Show Gist options
  • Save nanasess/1280282 to your computer and use it in GitHub Desktop.
Save nanasess/1280282 to your computer and use it in GitHub Desktop.
cmew.sh
#!/bin/sh
PATH=$PATH:/opt/local/bin:/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin
export PATH
LOG=/tmp/cmew.log
nice -n 19 $HOME/.cabal/bin/cmew 1> $LOG
if [ ! "$?" -eq 0 ]; then
cat $LOG >&2
exit 1
fi
nice -n 19 $HOME/Applications/Emacs.app/Contents/MacOS/bin/mewest > $LOG
if [ ! "$?" -eq 0 ]; then
cat $LOG >&2
exit 1
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment