Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to use tmux with custom a tmux.conf file location when using tmuxp? #736

Answered by paulmsmith
paulmsmith asked this question in Q&A
Discussion options

How can I run tmux with a custom config file location via tmuxp?

Why? There are usecases for running tmux with a nonstandard tmux config file or for simply wanting/needing to store the tmux config file is just in a different location than default.

Typically it is located at: ~/.tmux.conf but you might want to store it in ~/dotfiles/tmux.conf instead. To do this you use the tmux -f [path-to-conf-file] but it wasn't immediately obvious how to do this with tmuxp.

You must be logged in to vote

Turns out it has been possible since early 2021 with a pass through flag when using tmuxp for example:

tmuxp load ~/projects/project-a -f ~/dotfiles/tmux.conf

See this PR thread comment for more detail

Replies: 1 comment

Comment options

Turns out it has been possible since early 2021 with a pass through flag when using tmuxp for example:

tmuxp load ~/projects/project-a -f ~/dotfiles/tmux.conf

See this PR thread comment for more detail

You must be logged in to vote
0 replies
Answer selected by paulmsmith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /