Type less, smile more

How many times a week do you type /etc/init.d/blah start and then you realize you’re on HP-UX and it’s /sbin/init.d/blah Forget it. # Turn on extended globbing and programmable completion shopt -s extglob progcomp export MYOS=$(uname -s) if [[ “${MYOS}” = “Linux” || “${MYOS}” = “SunOS” ]] ; then INITDIR=’/etc/init.d’; else INITDIR=’/sbin/init.d’; fi export INITDIR; […]