Skip to content

Instantly share code, notes, and snippets.

@tiagovrtr
Created October 20, 2023 16:38
Show Gist options
  • Save tiagovrtr/d17c466ccdfa4e92b9cf01c564974fe8 to your computer and use it in GitHub Desktop.
Save tiagovrtr/d17c466ccdfa4e92b9cf01c564974fe8 to your computer and use it in GitHub Desktop.
post-checkout git hook for poetry install
#!/bin/bash
# Prompt the user if they want to run poetry install
read -p "Do you want to run poetry install --sync? (y/n) " -n 1 -r < /dev/tty
if [[ $REPLY =~ ^[Yy]$ ]]
then
poetry install --sync
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment