#!/bin/sh # Is idid an available command?which idid > /dev/nullif[[$?-eq 0 ]];then# What was the last message for todayidid last > /dev/null 2>&1if[[$?-eq 0 ]];thenmsg=$(git log --oneline --no-decorate --no-color|head -n 1)idid add --quiet"Commit: $msg"fifi