Compare commits
2 Commits
3738a90f3f
...
4ac16ee7b4
| Author | SHA1 | Date | |
|---|---|---|---|
| 4ac16ee7b4 | |||
| c729ef0778 |
14
agent-cmd.sh
14
agent-cmd.sh
@@ -3,10 +3,16 @@
|
||||
# Detaches the client if all panes in the window are dead afterwards.
|
||||
|
||||
agents=()
|
||||
command -v claude &>/dev/null && agents+=(claude)
|
||||
command -v opencode &>/dev/null && agents+=(opencode)
|
||||
command -v agy &>/dev/null && agents+=(agy)
|
||||
command -v codex &>/dev/null && agents+=(codex)
|
||||
agent_names=(
|
||||
pi
|
||||
claude
|
||||
opencode
|
||||
codex
|
||||
agy
|
||||
)
|
||||
for agent_name in ${agent_names[@]}; do
|
||||
command -v $agent_name &>/dev/null && agents+=($agent_name)
|
||||
done
|
||||
|
||||
if [ ${#agents[@]} -eq 0 ]; then
|
||||
echo "No agent commands found (claude, opencode, gemini)"
|
||||
|
||||
@@ -38,6 +38,14 @@ set -as terminal-features ',xterm*:clipboard'
|
||||
# Focus events enabled for terminals that support them
|
||||
set -g focus-events on
|
||||
|
||||
# Forward modifier information so apps, csi-u format requires tmux 3.5+.
|
||||
if -b '~/.config/tmux/check-version.sh ">= 3.2"' {
|
||||
set -g extended-keys on
|
||||
}
|
||||
if -b '~/.config/tmux/check-version.sh ">= 3.5"' {
|
||||
set -g extended-keys-format csi-u
|
||||
}
|
||||
|
||||
# Aggressively resize the chosen window to smallest/largest session
|
||||
setw -g aggressive-resize on
|
||||
|
||||
|
||||
Reference in New Issue
Block a user