Skip to content

Instantly share code, notes, and snippets.

@aloverso
Last active December 10, 2020 14:09
Show Gist options
  • Save aloverso/b4ac6576118deac41b34d4e217ff713b to your computer and use it in GitHub Desktop.
Save aloverso/b4ac6576118deac41b34d4e217ff713b to your computer and use it in GitHub Desktop.
zsh reminder to use ship-it
git() {
if [ "$1" = "push" ]
then
read "response?Are you sure you want to push without SHIP-IT????? [y/N] "
if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]
then
command git "$@"
else
echo "NOT PUSHING, GREAT JOB BY YOU"
fi
else
command git "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment