diff --git a/docs/changing_plugins_install_dir.md b/docs/changing_plugins_install_dir.md index 27de96d..dcacab7 100644 --- a/docs/changing_plugins_install_dir.md +++ b/docs/changing_plugins_install_dir.md @@ -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`: diff --git a/tpm b/tpm index 7ad4b99..34f6b98 100755 --- a/tpm +++ b/tpm @@ -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