mirror of
https://codeberg.org/muon/home.git
synced 2026-03-09 03:53:11 +00:00
Fix titles
This commit is contained in:
parent
8485d8007e
commit
6187422574
1 changed files with 4 additions and 7 deletions
|
|
@ -19,13 +19,10 @@
|
||||||
| awk -v pane="$WEZTERM_PANE" '
|
| awk -v pane="$WEZTERM_PANE" '
|
||||||
/window_id/ { gsub(/.*: */,""); w=int($0) }
|
/window_id/ { gsub(/.*: */,""); w=int($0) }
|
||||||
/pane_id/ { gsub(/.*: */,""); if (int($0)==pane) { print w; exit } }')
|
/pane_id/ { gsub(/.*: */,""); if (int($0)==pane) { print w; exit } }')
|
||||||
wezterm cli set-tab-title project 2>/dev/null
|
P1=$(wezterm cli spawn --window-id "$WIN" --cwd "$ZPATH" -- direnv exec . nvim)
|
||||||
P2=$(wezterm cli spawn --window-id "$WIN" --cwd "$ZPATH")
|
wezterm cli spawn --window-id "$WIN" --cwd "$ZPATH" > /dev/null
|
||||||
wezterm cli set-tab-title --pane-id "$P2" test 2>/dev/null
|
wezterm cli spawn --window-id "$WIN" --cwd "$ZPATH" -- lazygit > /dev/null
|
||||||
P3=$(wezterm cli spawn --window-id "$WIN" --cwd "$ZPATH" -- lazygit)
|
wezterm cli activate-tab --tab-index 0 --pane-id "$P1" 2>/dev/null
|
||||||
wezterm cli set-tab-title --pane-id "$P3" git 2>/dev/null
|
|
||||||
wezterm cli activate-tab --tab-index 0 2>/dev/null
|
|
||||||
exec zsh -c "direnv exec . nvim"
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue