Skip to content

Instantly share code, notes, and snippets.

@NickSdot
Last active June 28, 2023 11:43
Show Gist options
  • Save NickSdot/2d1a4d6834be1bcde596f62ecddedaee to your computer and use it in GitHub Desktop.
Save NickSdot/2d1a4d6834be1bcde596f62ecddedaee to your computer and use it in GitHub Desktop.
function mysql() {
read -p "Champ, are you aware that you are in production? (y/N): " confirm
if [[ "$confirm" =~ ^[Yy]$ ]]; then
command mysql "$@"
else
echo "Command execution canceled. Next beer is on you."
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment