#!/bin/sh case $1 in git) shift [ ! -d "$HOME/.git" ] && [ "$1" != "init" ] && echo "No git repo found in $HOME. Please initialize with rcman-git init" [ -d "$HOME/.git" ] || [ "$1" = "init" ] && rcman-git "$@" ;; files) [ ! -d "$HOME/.config/rcman" ] && mkdir -p "$HOME/.config/rcman" $EDITOR "$HOME/.config/rcman/files" ;; --version|-v) echo "prerelease 0.01" ;; *) STATEMENTS ;; esac