Skip to content

Commit 620f06c

Browse files
author
Bruno Sutic
committed
Undeprecate 'set -g @tpm_plugins'
1 parent f75ba16 commit 620f06c

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- add `.gitattributes` file that forces linefeed characters (classic `\n`) as
99
line endings - helps with misconfigured git on windows/cygwin
1010
- readme update: announce Cygwin support
11+
- un-deprecate old plugin definition syntax: `set -g @tpm_plugins`
1112

1213
### v3.0.0, 2015-08-03
1314
- refactor `shared_set_tpm_path_constant` function

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ Reload TMUX environment so TPM is sourced:
3535

3636
That's it!
3737

38-
(**Note:** using `set -g @tpm_plugins` is deprecated, but still works alongside
39-
new syntax.)
40-
4138
### Installing plugins
4239

4340
1. Add new plugin to `~/.tmux.conf` with `set -g @plugin '...'`

docs/tpm_not_working.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,32 @@ Here's the list of issues users had with `tpm`:
1414
- ZSH tmux plugin might be causing issues.<br/>
1515
If you have it installed, try disabling it and see if `tpm` works then.
1616

17+
> Help, I'm using `tmux -f /path/to/my_tmux.conf` option to start Tmux and for
18+
some reason plugins aren't loaded!?
19+
20+
[Issue #57](https://github.com/tmux-plugins/tpm/issues/57)
21+
22+
`tpm` has a known issue when using alternative config file with `-f` option.
23+
The solution is to use alternative plugin definition. Here are the steps to
24+
make it work:
25+
26+
1. remove all `set -g @plugin` lines from tmux config file
27+
2. in the config file define the plugins in the following way:
28+
29+
# List of plugins
30+
set -g @tpm_plugins ' \
31+
tmux-plugins/tpm \
32+
tmux-plugins/tmux-sensible \
33+
tmux-plugins/tmux-resurrect \
34+
'
35+
36+
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
37+
run '~/.tmux/plugins/tpm/tpm'
38+
39+
3. Reload TMUX environment so TPM is sourced: `$ tmux source /path/to/my_tmux.conf`
40+
41+
The plugins should now be working.
42+
1743
> Weird sequence of characters show up when installing or updating plugins
1844
1945
[Issue #25](https://github.com/tmux-plugins/tpm/issues/25)

scripts/helpers/plugin_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ tpm_path() {
3838
}
3939

4040
tpm_plugins_list_helper() {
41-
# DEPRECATED: lists plugins from @tpm_plugins option
41+
# lists plugins from @tpm_plugins option
4242
echo "$(tmux start-server\; show-option -gqv "$tpm_plugins_variable_name")"
4343

4444
# read set -g @plugin "tmux-plugins/tmux-example-plugin" entries

0 commit comments

Comments
 (0)