diff --git a/git_automation.sh b/git_automation.sh index db21dba..09ed251 100755 --- a/git_automation.sh +++ b/git_automation.sh @@ -1,11 +1,12 @@ #!/bin/bash +#Before running this script, make sure that you added an alias to your shell config file (~/.bashrc, ~/.zshrc, etc.) +#alias trigger_git='touch /tmp/please_update' +#Then run source ~/.zshrc to load the new alias + #Variable to store the trigger file path TRIGGER_FILE="/tmp/please_update" -# An alias so i no longer have to type the full command -alias trigger_git="touch $TRIGGER_FILE" - #The magic itself echo "[INFO] Watching $TRIGGER_FILE..." echo "[INFO] To trigger a git commit and push, run: trigger_git"