shithub: wiki.9front.org

ref: d751819ba0d8e1b9cbc9a49c0be56236eb90aca0
dir: /plumber-vt.md/

View raw version
# Plumber + vt: accessing remote Unix files

It's possible to use `OSC 7` extension for easier plumbing of paths displayed in vt(1).
First, for each machine you're planning to ssh+vt into, set up sshfs(4). Example:

	sshfs -s myhost -r / myhost
	plumb 'Local mount -c /srv/myhost /n/myhost'

The name in "/n/myhost" path MUST be the hostname of the remote machine - run `hostname` there to check.

For the remote shell to start sending `OSC 7` messages, follow
[these instructions](https://codeberg.org/dnkl/foot/wiki#user-content-spawning-new-terminal-instances-in-the-current-working-directory).

If you intend to use `tmux`, it's required to enable the extension explicitly since `tmux` does not know what vt(1) is capable of. Example:

	$ cat ~/.tmux.conf
	set-option -s terminal-features[2] xterm*:osc7

This option forces `tmux` to believe that your terminal emulator supports `OSC 7` extension.