Skip to content

tmux and XDG_CONFIG_HOME #654

Answered by tony
jfindlay asked this question in Q&A
Dec 23, 2020 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

@jfindlay This is a really good catch. As of 1.6 / 1.7 master:

  • tmuxp commands (e.g. tmuxp load) don't pass through the -f (tmux config file) to tmux. tmuxp already passes through -2 (256 colors), -8, -L (socket_name), -S (socket_path) to tmux

I spent about 15 minutes reading through the source code and I couldn't find where to make any changes for this issue/feature. With a suggestion, I am willing to implement this myself.

We'd do it in cli.py in command_load (CLI entrypoint) and load_workspace.

We can accept an -f / --file as an arg. We'd need to do this at t = Server so the libtmux client used refers to the tmux config file:

tmuxp/tmuxp/cli.py

Lines 918 to 950 in 0d6a0eb

@

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@jfindlay
Comment options

@tony
Comment options

@tony
Comment options

@jfindlay
Comment options

@tony
Comment options

Answer selected by jfindlay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #654 on December 29, 2020 15:05.