mirror of
https://github.com/boxpositron/absolute-dotfiles.git
synced 2026-02-28 19:50:38 +00:00
16 lines
344 B
Bash
Executable File
16 lines
344 B
Bash
Executable File
#!/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 "$@"
|