fix: restore tree dropped by 6d224861; land stem95su gdrive-sync (10m) [ci skip]
6d224861 came from a --no-checkout worktree whose empty index made the
commit drop every file except two. This restores 05b50d2b's full tree and
correctly adds stacks/stem95su/gdrive-sync.tf + the service-catalog stem95su
entry. Forward-only (parent=6d224861, no force-push); [ci skip] since the
live infra was never applied from the broken commit.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
6d224861c4
commit
fd0f4a0365
1166 changed files with 358546 additions and 0 deletions
42
scripts/workstation/skel/start-claude.sh
Executable file
42
scripts/workstation/skel/start-claude.sh
Executable file
|
|
@ -0,0 +1,42 @@
|
|||
#!/bin/bash
|
||||
# Per-user Claude Code Workstation launcher (devvm). Lands the user in their OWN
|
||||
# ~/code clone (NOT a hardcoded /home/wizard/code) and names the Claude session
|
||||
# after the tmux session so /resume, the prompt box, and the terminal title line
|
||||
# up. Deployed via /etc/skel by setup-devvm.sh, so new accounts get it on
|
||||
# `useradd -m`. Existing users are repointed to this during their migration.
|
||||
echo ""
|
||||
echo " Welcome, $(id -un)! 🚀"
|
||||
echo ""
|
||||
echo " Starting Claude Code in $HOME/code ..."
|
||||
echo " (Right-click for tmux menu, or Ctrl+B then | or - to split)"
|
||||
echo ""
|
||||
|
||||
name_args=()
|
||||
if [ -n "${TMUX:-}" ]; then
|
||||
sess="$(tmux display-message -p '#{session_name}' 2>/dev/null)"
|
||||
[ -n "$sess" ] && name_args=(--name "$sess")
|
||||
fi
|
||||
|
||||
cd "$HOME/code" 2>/dev/null || cd "$HOME"
|
||||
|
||||
# Prefer the system-wide `claude` (installed by setup-devvm.sh); fall back to npx.
|
||||
launch() {
|
||||
if command -v claude >/dev/null 2>&1; then
|
||||
claude "$@"
|
||||
else
|
||||
npx @anthropic-ai/claude-code "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
# Deliberately not `exec` so we can branch on the exit code: clean quit ends the
|
||||
# pane (ttyd closes the terminal); a crash drops to a shell so the tmux session
|
||||
# isn't destroyed-and-recreated in a ttyd auto-reconnect loop.
|
||||
launch --dangerously-skip-permissions --model claude-opus-4-8 "${name_args[@]}"
|
||||
code=$?
|
||||
[ "$code" -eq 0 ] && exit 0
|
||||
|
||||
echo ""
|
||||
echo " claude exited abnormally (status $code). Dropping to a shell — your tmux session is preserved."
|
||||
echo " Re-launch any time with: ~/start-claude.sh"
|
||||
echo ""
|
||||
exec "${SHELL:-/bin/bash}" -l
|
||||
51
scripts/workstation/skel/tmux.conf
Normal file
51
scripts/workstation/skel/tmux.conf
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# Workstation base tmux config (deployed to /etc/skel/.tmux.conf by
|
||||
# setup-devvm.sh; new accounts inherit it). Uses $HOME (expanded by the shell at
|
||||
# run time) so it works for ANY user — never a hardcoded /home/<name>.
|
||||
#
|
||||
# NOTE: the tmux-resurrect/continuum "persistence" block is owned by the separate
|
||||
# terminal-lobby tool, which appends its own managed section + installs tpm. This
|
||||
# base file intentionally omits it so a fresh account isn't left with broken
|
||||
# `run ~/.tmux/plugins/tpm/tpm` references before terminal-lobby runs.
|
||||
|
||||
# Launch the per-user Claude launcher in every new pane/window (lands in ~/code).
|
||||
set -g default-command "$HOME/start-claude.sh"
|
||||
|
||||
# Mouse support — click panes, drag to resize, scroll with wheel
|
||||
set -g mouse on
|
||||
|
||||
# Easy splits: Ctrl+b then | for vertical, - for horizontal
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
bind c new-window -c "#{pane_current_path}"
|
||||
|
||||
# Right-click context menu — clickable actions popup
|
||||
bind -n MouseDown3Pane display-menu -T "#[align=centre]Terminal Menu" -x M -y M \
|
||||
"New Claude" w "new-window -c '#{pane_current_path}'" \
|
||||
"Split Horizontal" h "split-window -v -c '#{pane_current_path}'" \
|
||||
"Split Vertical" v "split-window -h -c '#{pane_current_path}'" \
|
||||
"" \
|
||||
"Shell" s "split-window -v -c '#{pane_current_path}' /bin/zsh" \
|
||||
"" \
|
||||
"Close Pane" x "confirm-before -p 'Close pane? (y/n)' kill-pane" \
|
||||
"Close Window" X "confirm-before -p 'Close window? (y/n)' kill-window" \
|
||||
"" \
|
||||
"Detach" d "detach-client"
|
||||
|
||||
# Clickable [+] button in the status bar — left-click to open the same menu
|
||||
set -g status-right '#[fg=black bg=green] [+] #[default] #[fg=cyan]Right-click for menu '
|
||||
set -g status-right-length 60
|
||||
bind -n MouseDown1StatusRight display-menu -T "#[align=centre]Terminal Menu" -x M -y S \
|
||||
"New Claude" w "new-window -c '#{pane_current_path}'" \
|
||||
"Split Horizontal" h "split-window -v -c '#{pane_current_path}'" \
|
||||
"Split Vertical" v "split-window -h -c '#{pane_current_path}'" \
|
||||
"" \
|
||||
"Shell" s "split-window -v -c '#{pane_current_path}' /bin/zsh" \
|
||||
"" \
|
||||
"Close Pane" x "confirm-before -p 'Close pane? (y/n)' kill-pane" \
|
||||
"Close Window" X "confirm-before -p 'Close window? (y/n)' kill-window"
|
||||
|
||||
# Status bar styling + 1-based numbering
|
||||
set -g status-style 'bg=colour235 fg=colour136'
|
||||
set -g status-left '#[fg=green][#S] '
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue