Closed LittleNewton closed 9 months ago
I need to put all the plugins in ~/.config/tmux/plugins. Is there a method to realize it?
Currently, tpm install all my plugins to ~/.config/tmux/plugins
. Is it because you use a old tpm?
$ ls .tmux/plugins/
rainbarf/ tmux-continuum/ tmux-fzf/ tmux-powerline/ tmux-resurrect/ tpm/
It looks like that all plugins are installed in ~/.tmux/plugins
.
local xdg_tmux_path="${XDG_CONFIG_HOME:-$HOME/.config}/tmux"
local tpm_path="$DEFAULT_TPM_PATH"
if [ -f "$xdg_tmux_path/tmux.conf" ]; then
tpm_path="$xdg_tmux_path/plugins/"
fi
Can you change ~/.config/tmux/tmux.conf
?
I am wondering to know how to change the default path of tmux's configs.
~/.config/tmux/tmux.conf
exists, but it doesn't work.
Only contents in ~/.tmux.conf
will influence tmux.
tmux version: tmux 3.3a OS: Debian 12 bookworm
OK, I have found the solution.
export XDG_CONFIG_HOME=~/.config
touch ~/.config/tmux/tmux.conf
and paste all your configurations into it.~/.config/tmux/tmux.conf
, remember to add a line with content: run '~/.config/tmux/plugins/tpm/tpm'
./home/newton/.config/tmux/plugins/tpm
OK.can you close this issue because the problem has been solved?
Hi,
I am using tpm now and it works nice.
For the reason of management, I need to put all the plugins in
~/.config/tmux/plugins
. Is there a method to realize it?