wezterm: ssh domain user variable
This commit is contained in:
parent
07d5c3daf2
commit
0e1403bdd5
2 changed files with 7 additions and 1 deletions
|
@ -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)]
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue