#!/bin/bash
case "$1" in
(on|off)
    mdutil -a -i "$1" ;;
(*)
    printf 'usage: %s on|off\n' "$(basename "$0")"
    exit 1
    ;;
esac
ViewGit