Closed ww7 closed 8 months ago
Hello @ww7 👋
Works for me on Sonoma.
There's an error in the command you tried:
ps: /dev/tty5 and /dev/5: No such file or directory
Can you please first to try a fresh install of Oh my tmux! ?
Then with only two panes do the following, let's name them pane 1 and pane 2
$ tmux display -p '#{pane_tty}'
→ This will display a value like /dev/ttysYYY
ps -t /dev/ttysYYY -o user=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -o pid= -o ppid= -o command=
Hello @gpakosz !
Thank you for the kind answer! As it works on your side with Sonoma then I should fix it on my side.
There's an error in the command you tried:
ps: /dev/tty5 and /dev/5: No such file or directory
^ sorry, this error is my mistake, it some wrong run.
Test shows SSH process associated with TTY. Before and after SSH session it shows only:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ww7 57084 56766 zsh (cwterm)
I'm using sorin-ionescu/prezto Zsh configuration framework and seems some additional customization made this issue possible.
Empty Zsh and fresh setup of Prezto works fine with Oh my tmux!
Great thanks and sorry for disturbing! :)
Hi, on macOS (latest 'Sonoma') resolving of SSH hostname is not working. Printing empty value for
hostname_full_ssh
,hostname_ssh
andhostname
At the same time, function
ssh_or_mosh_args
seems works:ssh -G $ssh_or_mosh_args 2>/dev/null | awk '/^hostname / { print $2; exit }'
– printing correct remote hostnameI tried to debug as gpakosz#627
pane_info='25239:ww7:zsh (cwterm)'
– seems no SSH process associated with that TTYBefore SSH connect, based on
tmux display -p '#{pane_pid} #{b:pane_tty} false false #h #D'
log:and after SSH connection based on
tmux display -p '#{pane_pid} #{b:pane_tty} false false #h #D'