From a73a920e7eb7647bc7d2f22ffff4cfdf8093f28e Mon Sep 17 00:00:00 2001 From: Li Tang Date: Mon, 11 May 2026 13:12:31 +0800 Subject: [PATCH] feat: default dev trigger nothing Signed-off-by: Li Tang --- .zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index d75427f..27eab70 100644 --- a/.zshrc +++ b/.zshrc @@ -381,7 +381,7 @@ function bitnami_seal() { function dev() { local session="" local layout="simple" - local tool="cc" + local tool="" for arg in "$@"; do case "$arg" in @@ -425,7 +425,7 @@ function dev() { # Only enable passthrough for yazi pane (image display); keep it off elsewhere # to prevent Ghostty DA/XTVERSION responses leaking into other panes' stdin. # tmux set-option -p -t "$tr" allow-passthrough on - tmux send-keys -t "$left" "$tool" Enter + [[ -n "$tool" ]] && tmux send-keys -t "$left" "$tool" Enter tmux send-keys -t "$tr" "yazi" Enter tmux send-keys -t "$br" "lazygit" Enter else @@ -436,7 +436,7 @@ function dev() { br=$(tmux split-window -t "$tr" -v -c "$cwd" -P -F "#{pane_id}") # tmux set-option -p -t "$tr" allow-passthrough on - tmux send-keys -t "$left" "$tool" Enter + [[ -n "$tool" ]] && tmux send-keys -t "$left" "$tool" Enter tmux send-keys -t "$tr" "yazi" Enter fi