feat(bin): add new scripts for managing Claude profiles and sessions.

This commit is contained in:
David Ibia
2025-11-09 14:09:30 +01:00
parent eb766854e0
commit e34f495368
4 changed files with 206 additions and 0 deletions

15
.local/bin/cl Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail
function usecl() {
# Inside tmux: launch Claude with the session's profile
if [[ -n "${TMUX:-}" ]]; then
~/.local/bin/claude-tmux run "$@"
else
# Not in tmux: pick or create a session, attach, and launch Claude there
~/.local/bin/claude-tmux pick
fi
}
usecl "$@"