StokeBloke.com

Robert Muths Better Bash Scripting

Sunday, April 20th, 2014

http://robertmuth.blogspot.de/2012/08/better-bash-scripting-in-15-minutes.html

After using bash for years, its still good to learn new things 🙂

Most of my scripts still use back ticks too.  I should really get around to fixing them soon along with everything else on my long todo list.

My emacs startup script for cygwin

Tuesday, March 24th, 2009

This is my emacs script for cygwin. It runs the Windows Emacs version and runs just 1 instance of emacs in most cases.

Typing emacs on its own simply starts a new version of emacs.

Type emacs and a file will try to open the document in a running version if its started else it will start emacs.

#!/bin/bash

if [ -z $1 ]
then
    d:/apps/emacs-22.2/bin/emacs.exe
else
    d:/apps/emacs-22.2/bin/emacsclient.exe -n \
    -a d:/apps/emacs-22.2/bin/emacs.exe $@ \
    >/dev/null 2>&1
fi