1
0
Fork 0

wezterm: ssh domain user variable

This commit is contained in:
Daniel Kempkens 2025-01-04 13:10:11 +01:00
parent 07d5c3daf2
commit 0e1403bdd5
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 7 additions and 1 deletions

View file

@ -94,7 +94,9 @@
(extract-tab-info (t:gsub "^op%srun%s%-%-%s(.*)" "%1"))
_ {: title :icon " " :color colors.shell}))
(fn is-ssh-domain [pane] (= (string.sub pane.domain_name 1 3) :SSH))
(fn is-ssh-domain [pane]
(or (= (?. pane :user_vars :cmd_domain) :ssh)
(= (string.sub pane.domain_name 1 3) :SSH)))
(fn show-tab-activity-indicator [panes]
(each [_ pane (ipairs panes)]

View file

@ -1 +1,5 @@
printf "\033]1337;SetUserVar=%s=%s\007" cmd_domain `echo -n ssh | base64`
et -c "$*" mediaserver
printf "\033]1337;SetUserVar=%s=%s\007" cmd_domain `echo -n local | base64`