Skip to content

Instantly share code, notes, and snippets.

@AnExiledDev
Created October 14, 2025 03:13
Show Gist options
  • Select an option

  • Save AnExiledDev/ea1ac2b744737dcf008f581033935b23 to your computer and use it in GitHub Desktop.

Select an option

Save AnExiledDev/ea1ac2b744737dcf008f581033935b23 to your computer and use it in GitHub Desktop.
Script to create `claude` alias with --append-system-prompt from file
#!/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