Merge fa7655977e
into b699a7e01c
This commit is contained in:
commit
6a4a568167
|
@ -1,8 +1,8 @@
|
||||||
# Changing plugins install dir
|
# Changing plugins install dir
|
||||||
|
|
||||||
By default, TPM installs plugins in a subfolder named `plugins/` inside
|
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
|
`$XDG_CONFIG_HOME/tmux/` if that directory exists, or inside `~/.tmux/`
|
||||||
inside `~/.tmux/` otherwise.
|
otherwise.
|
||||||
|
|
||||||
You can change the install path by putting this in `.tmux.conf`:
|
You can change the install path by putting this in `.tmux.conf`:
|
||||||
|
|
||||||
|
|
2
tpm
2
tpm
|
@ -27,7 +27,7 @@ set_default_tpm_path() {
|
||||||
local xdg_tmux_path="${XDG_CONFIG_HOME:-$HOME/.config}/tmux"
|
local xdg_tmux_path="${XDG_CONFIG_HOME:-$HOME/.config}/tmux"
|
||||||
local tpm_path="$DEFAULT_TPM_PATH"
|
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/"
|
tpm_path="$xdg_tmux_path/plugins/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue