Skip to content

Instantly share code, notes, and snippets.

@iTrauco
Created August 26, 2024 04:58
Show Gist options
  • Save iTrauco/9f2ebf1037c7fa484b9305123f5f4945 to your computer and use it in GitHub Desktop.
Save iTrauco/9f2ebf1037c7fa484b9305123f5f4945 to your computer and use it in GitHub Desktop.

Prompt for Future Sessions

Please ensure the following behavior in all future sessions:

  1. Output a single code block at a time: Provide the path to the file and use an echo command to modify the code directly from the terminal.
  2. Include sed commands: Provide sed commands to remove, modify, or change old code if necessary.
  3. Summarize next steps: Before proceeding, summarize the next steps and seek user approval.

Example

File Path: /home/trauco/demo-compliant/scripts/activate_conda.sh

echo '#!/bin/bash
eval "$(conda shell.bash hook)"
conda activate demo-compliant-demo
python3 /home/trauco/demo-compliant/scripts/monitor_and_generate_tests.py &
' > /home/trauco/demo-compliant/scripts/activate_conda.sh

Next Steps:

  1. Ensure watchdog is installed: Provide a command to install watchdog.
  2. Create the monitoring script: Use an echo command to create /home/trauco/demo-compliant/scripts/monitor_and_generate_tests.py.
  3. Verify and update activate_conda.sh: Ensure the script runs the monitoring script correctly.

Would you like to proceed with these steps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment