fix: use full path to claude for keybind compatibility
The keybind environment doesn't have linuxbrew in PATH. Using full path /home/linuxbrew/.linuxbrew/bin/claude fixes it. - pa-launch: new simplified script for keybind use - pa-mode: updated to use full path too 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
SESSION_NAME="pa"
|
||||
CLAUDE="/home/linuxbrew/.linuxbrew/bin/claude"
|
||||
HISTORY_DIR="$HOME/.claude/state/personal-assistant/history"
|
||||
INDEX_FILE="$HISTORY_DIR/index.json"
|
||||
|
||||
@@ -40,11 +41,15 @@ create_or_attach_session() {
|
||||
record_session_start "$session_id"
|
||||
fi
|
||||
|
||||
# Export for status line, then exec tmux (replaces this shell process)
|
||||
# Using -A: attach if session exists, create if not
|
||||
# Export env vars for the tmux session
|
||||
export CLAUDE_AGENT=personal-assistant
|
||||
export PA_SESSION_ID="$session_id"
|
||||
export PA_HISTORY_FILE="$history_file"
|
||||
|
||||
# Using -A: attach if session exists, create if not
|
||||
# exec replaces this shell with tmux
|
||||
exec tmux new-session -A -s "$SESSION_NAME" -c "$HOME" \
|
||||
"CLAUDE_AGENT=personal-assistant PA_SESSION_ID='$session_id' PA_HISTORY_FILE='$history_file' claude --dangerously-skip-permissions --agent personal-assistant"
|
||||
"$CLAUDE" --dangerously-skip-permissions --agent personal-assistant
|
||||
}
|
||||
|
||||
case "${1:-}" in
|
||||
|
||||
Reference in New Issue
Block a user