Created
October 14, 2025 03:13
-
-
Save AnExiledDev/ea1ac2b744737dcf008f581033935b23 to your computer and use it in GitHub Desktop.
Script to create `claude` alias with --append-system-prompt from file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| SYSTEM_PROMPT_FILE="/workspace/.devcontainer/configurations/cc/system-prompt.md" | |
| [[ -f "$SYSTEM_PROMPT_FILE" ]] || { echo "ERROR: $SYSTEM_PROMPT_FILE not found"; exit 1; } | |
| echo "alias claude='claude --dangerously-skip-permissions --append-system-prompt \"\$(cat $SYSTEM_PROMPT_FILE)\"'" >> ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment