#!/bin/zsh # vim:ft=zsh mkcmod () { if [[ $1 == "" ]]; then echo "Usage: $0 mod_name" else touch $1.{c,h} fi }