Skip to content

Instantly share code, notes, and snippets.

@samber
Created November 29, 2019 11:30
Show Gist options
  • Save samber/c3c2bb4c81f2d697fad5979bc63a0742 to your computer and use it in GitHub Desktop.
Save samber/c3c2bb4c81f2d697fad5979bc63a0742 to your computer and use it in GitHub Desktop.
Whatthecommit bash function
function yolo() {
local COLUMNS=10
while true; do
CHOICE_A=$(curl -s whatthecommit.com/index.txt)
CHOICE_B=$(curl -s whatthecommit.com/index.txt)
CHOICE_C=$(curl -s whatthecommit.com/index.txt)
select MSG in ${CHOICE_A} ${CHOICE_B} ${CHOICE_C} other
do
echo
[[ ${MSG} != "" ]] && break
done
[[ ${MSG} != "other" ]] && break
done
git commit -m "${MSG}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment