mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-13 15:09:34 +00:00
feat: default dev trigger nothing
Signed-off-by: Li Tang <iamtangli42@gmail.com>
This commit is contained in:
6
.zshrc
6
.zshrc
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user