Function: clipetty--get-tmux-ssh-tty
clipetty--get-tmux-ssh-tty is a natively compiled function defined in
clipetty.el.
Signature
(clipetty--get-tmux-ssh-tty)
Documentation
Query tmux for its local SSH_TTY environment variable and return it.
Return nil if tmux is unable to locate the environment variable
Source Code
;; Defined in /nix/store/7jgingzby054id3d9x64ir7i7a509mkl-emacs-packages-deps/share/emacs/site-lisp/elpa/clipetty-20200327.2241/clipetty.el
(defun clipetty--get-tmux-ssh-tty ()
"Query tmux for its local SSH_TTY environment variable and return it.
Return nil if tmux is unable to locate the environment variable"
(let ((tmux-ssh-tty (shell-command-to-string clipetty-tmux-ssh-tty)))
(if (and tmux-ssh-tty
(string-match clipetty-tmux-ssh-tty-regexp tmux-ssh-tty))
(match-string 1 tmux-ssh-tty)
nil)))