hosttmux

package
v0.9.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package hosttmux materializes the tmux config Dejima applies to the host terminals it creates (operator shells running in tmux ON the daemon host).

In-container agent sessions get their tmux defaults from the image's /etc/tmux.conf (see image/tmux.conf). Host terminals run on the daemon host where there is no such system config and where the operator may already keep a ~/.tmux.conf we must not clobber. So instead of touching the user's config we ship a dedicated config and pass it to ONLY Dejima-created host sessions via `tmux -f`; that config first `source-file`s the user's ~/.tmux.conf and then layers Dejima's passthrough/extended-keys defaults on top.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath() (string, error)

ConfigPath writes the embedded host-tmux config to ~/.dejima/tmux-host.conf (refreshing it if the embedded content changed) and returns the path, for use as the argument to `tmux -f`. It is cheap and idempotent: callers invoke it on every host session create/attach so a daemon upgrade re-materializes the latest config without any install step.

func NewSessionArgs

func NewSessionArgs(rest ...string) []string

NewSessionArgs returns the leading `tmux -f <config> …` argv for a host tmux command, so host session create/attach share one passthrough-enabled config. On failure to materialize the config it falls back to a bare `tmux` so host terminals never break just because the config could not be written.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL