Files
isaaccladandClaude Opus 4.8 75ba450938
Deploy Ladill Hosting / deploy (push) Successful in 45s
Terminal: show the live full working-directory path in the toolbar
The toolbar showed a static ~/public_html. The jailed shell now reports its cwd
via OSC 7 each prompt (jail rcfile keeps the user's prompt + emits it); xterm
captures it and the toolbar shows the full path (/home/<user>/...), updating as
the user cd's. Launcher/rcfile committed in deployment/ for reproducibility.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-27 07:53:48 +00:00

9 lines
571 B
Plaintext

# Ladill jail interactive shell rc: keep the user's shell config, start in the
# requested directory, and report the working directory to the control panel via
# OSC 7 on every prompt so the toolbar shows the live full path.
[ -r /etc/bash.bashrc ] && . /etc/bash.bashrc
[ -r "$HOME/.bashrc" ] && . "$HOME/.bashrc"
[ -n "${LADILL_START_DIR:-}" ] && cd "$LADILL_START_DIR" 2>/dev/null
__ladill_cwd() { printf '\033]7;file://%s%s\007' "${HOSTNAME:-ladill}" "$PWD"; }
case "$-" in *i*) PROMPT_COMMAND="__ladill_cwd${PROMPT_COMMAND:+; $PROMPT_COMMAND}"; __ladill_cwd ;; esac