feat: default dev trigger nothing

Signed-off-by: Li Tang <iamtangli42@gmail.com>
This commit is contained in:
2026-05-11 13:12:31 +08:00
parent b3196ab29b
commit a73a920e7e

6
.zshrc
View File

@@ -381,7 +381,7 @@ function bitnami_seal() {
function dev() { function dev() {
local session="" local session=""
local layout="simple" local layout="simple"
local tool="cc" local tool=""
for arg in "$@"; do for arg in "$@"; do
case "$arg" in case "$arg" in
@@ -425,7 +425,7 @@ function dev() {
# Only enable passthrough for yazi pane (image display); keep it off elsewhere # Only enable passthrough for yazi pane (image display); keep it off elsewhere
# to prevent Ghostty DA/XTVERSION responses leaking into other panes' stdin. # to prevent Ghostty DA/XTVERSION responses leaking into other panes' stdin.
# tmux set-option -p -t "$tr" allow-passthrough on # 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 "$tr" "yazi" Enter
tmux send-keys -t "$br" "lazygit" Enter tmux send-keys -t "$br" "lazygit" Enter
else else
@@ -436,7 +436,7 @@ function dev() {
br=$(tmux split-window -t "$tr" -v -c "$cwd" -P -F "#{pane_id}") br=$(tmux split-window -t "$tr" -v -c "$cwd" -P -F "#{pane_id}")
# tmux set-option -p -t "$tr" allow-passthrough on # 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 "$tr" "yazi" Enter
fi fi