Add to your ~/.bashrc:
source /path/to/screenplay-prompt/screenplay-prompt.shThen restart your terminal or run:
source ~/.bashrcAdd to your ~/.zshrc:
source /path/to/screenplay-prompt/screenplay-prompt.shThen restart your terminal or run:
source ~/.zshrcClone or copy to a permanent location:
# Option 1: Clone to ~/.screenplay-prompt
git clone <repo-url> ~/.screenplay-prompt
echo 'source ~/.screenplay-prompt/screenplay-prompt.sh' >> ~/.bashrc
# Option 2: Copy to ~/.screenplay-prompt
cp -r screenplay-prompt ~/.screenplay-prompt
echo 'source ~/.screenplay-prompt/screenplay-prompt.sh' >> ~/.bashrcOn first run, screenplay-prompt will automatically create:
~/.config/screenplay/
├── locations # INT./EXT. locations
├── transitions # Scene transitions
└── title # Title page content
Edit ~/.config/screenplay/title:
ANNIE HALL
written by
Woody Allen
Marshall Brickman
Edit ~/.config/screenplay/locations:
INT. RICK'S
INT. BEDROOM
INT. COFFEE SHOP
EXT. CITY STREET
Edit ~/.config/screenplay/transitions:
CUT TO:
DISSOLVE TO:
FADE TO:
SMASH CUT TO:
For the complete screenplay experience:
cp themes/wezterm-screenplay.lua ~/.config/wezterm/
ln -sf ~/.config/wezterm/wezterm-screenplay.lua ~/.config/wezterm/wezterm.luaRestart WezTerm to apply.
The title page only appears once per session. To see it again, run:
unset SCREENPLAY_TITLE_SHOWN
source ~/.bashrcOr simply run clear and open a new terminal.
Make sure your terminal supports tput cols. Most modern terminals do. If tput is unavailable, the prompt automatically falls back to 80-column width.
Screenplay-prompt gracefully degrades in non-interactive environments (scripts, pipes, cron jobs):
- Title page is skipped
- Terminal size detection falls back to defaults (80x24)
- All features remain functional
No action needed. Screenplay-prompt automatically detects missing shuf command and uses a bash-native random line picker. This is common on BSD/macOS systems and is handled transparently.
Set a custom location for config files:
export SCREENPLAY_CONFIG="$HOME/.screenplay"
source screenplay-prompt.shAll config files are optional. If missing or empty, sensible defaults are used:
locations: Falls back to "INT. RICK'S"transitions: Falls back to "CUT TO:"title: Uses built-in default title page
Remove from your shell RC file:
# Edit ~/.bashrc or ~/.zshrc and remove the line:
# source ~/.screenplay-prompt/screenplay-prompt.shOptionally remove config:
rm -rf ~/.config/screenplay
rm -rf ~/.screenplay-prompt