This commit is contained in:
Andrey Kaipov 2022-01-06 11:47:40 +08:00 committed by GitHub
commit 6a4a568167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
# Changing plugins install dir
By default, TPM installs plugins in a subfolder named `plugins/` inside
`$XDG_CONFIG_HOME/tmux/` if a `tmux.conf` file was found at that location, or
inside `~/.tmux/` otherwise.
`$XDG_CONFIG_HOME/tmux/` if that directory exists, or inside `~/.tmux/`
otherwise.
You can change the install path by putting this in `.tmux.conf`:

2
tpm
View File

@ -27,7 +27,7 @@ set_default_tpm_path() {
local xdg_tmux_path="${XDG_CONFIG_HOME:-$HOME/.config}/tmux"
local tpm_path="$DEFAULT_TPM_PATH"
if [ -f "$xdg_tmux_path/tmux.conf" ]; then
if [ -d "$xdg_tmux_path" ]; then
tpm_path="$xdg_tmux_path/plugins/"
fi