mirror of
https://github.com/boxpositron/absolute-dotfiles.git
synced 2026-02-28 03:30:37 +00:00
feat(bin): add new scripts for managing Claude profiles and sessions.
This commit is contained in:
15
.local/bin/cl
Executable file
15
.local/bin/cl
Executable 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 "$@"
|
||||
Reference in New Issue
Block a user