You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tpm update plugins doesn't work since b17d57f #631
FROM archlinux
WORKDIR /root
RUN pacman -Syu --noconfirm
RUN pacman -S --noconfirm tmux awk perl sed git curl python vim
RUN git clone https://github.com/gpakosz/.tmux.git
RUN ln -s .tmux/.tmux.conf
RUN curl -o ./.tmux.conf.local https://git.tsundere.moe/Frederick888/frederick-settings/-/raw/master/.tmux.conf.local
Build the image then run with podman/docker run --rm -it <image> bash.
In the container, run tmux, then <prefix> + U (this is my binding for tpm's update_plugins script; prefix is Ctrl-a), tpm displays an empty list of plugins.
Workaround
I noticed if I revert the source .tmux.conf.local line, i.e.
diff --git a/.tmux.conf b/.tmux.conf
index cd065a4..8f38db8 100644
--- a/.tmux.conf+++ b/.tmux.conf@@ -156,9 +156,9 @@ bind P choose-buffer # choose which buffer to paste from
%if #{==:#{TMUX_CONF_LOCAL},}
run '"$TMUX_PROGRAM" set-environment -g TMUX_CONF_LOCAL "$TMUX_CONF.local"'
%endif
-run '"$TMUX_PROGRAM" source "$TMUX_CONF_LOCAL"'+source -q ~/.tmux.conf.local
run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
# EOF
#
...then the issue is gone. No idea why though. I also tested source -F '#{TMUX_CONF_LOCAL}' but the issue persisted.
It seems somehow it just has to be ~/.tmux.conf.local (or $HOME/.tmux.conf.local).
By now Oh My Tmux! sets @tpm_plugins before invoking TPM.
Specifically to avoir TPM having opinion on what configuration files are and how they're sourced.
For now I can't reproduce on macOS and I don't have Docker Desktop installed.
But now that I think about it, you may be facing a binding clash
Can you please run the following command within a tmux pane?
$ tmux lsk | grep ' U '
bind-key -T prefix U run-shell "cut -c3- '#{TMUX_CONF}' | sh -s _urlview '#{pane_id}'"
This is the default binding for U and you're trying to set it to something else.
Please revert your patches and try this in your .local customization file
bind U run-shell $HOME/.tmux/plugins/tpm/bindings/update_plugins #!important
Activity
Frederick888 commentedon Mar 6, 2023
Ohhh, I think it's [1]!
If I patch the file with
...then it's working again.
[1] https://github.com/tmux-plugins/tpm/blob/99469c4a9b1ccf77fade25842dc7bafbc8ce9946/scripts/helpers/plugin_functions.sh#L49
Frederick888 commentedon Mar 6, 2023
I can use
source -F '#{TMUX_CONF_LOCAL}'with tmux-plugins/tpm#244gpakosz commentedon Mar 6, 2023
Something's not quite right.
By now Oh My Tmux! sets
@tpm_pluginsbefore invoking TPM.Specifically to avoir TPM having opinion on what configuration files are and how they're sourced.
For now I can't reproduce on macOS and I don't have Docker Desktop installed.
gpakosz commentedon Mar 6, 2023
But now that I think about it, you may be facing a binding clash
Can you please run the following command within a tmux pane?
This is the default binding for
Uand you're trying to set it to something else.Please revert your patches and try this in your
.localcustomization filegpakosz commentedon Mar 6, 2023
Please revert to a clean state, make sure you remove everything for good mesure and try the
gh-631branchFrederick888 commentedon Mar 6, 2023
Reverted my patches and with my current
.tmux.conf.local:And if I use
bind U run-shell $HOME/.tmux/plugins/tpm/bindings/update_plugins #!important, still without any of my own oh-my-tmux or tpm patches:<prefix> + Ustill shows an empty listgpakosz commentedon Mar 6, 2023
Please also make sure your
Ubinding is the proper oneFrederick888 commentedon Mar 6, 2023
I don't see the
gh-631branch. Did you push?gpakosz commentedon Mar 6, 2023
Now it's pushed!
Frederick888 commentedon Mar 6, 2023
Yes it works! Also tested my original one without
#!important, worked too!gpakosz commentedon Mar 6, 2023
Nice. Maybe your TPM PR is useful to upstream but I didn't want to wait for such sort of adoption.
I'll close this with merging
gh-631. Thanks for the proper investigation. Appreciated!Merge remote-tracking branch 'upstream/master'
added support for configuration files in the following locations: (3), …
added support for configuration files in the following locations: (3), …
added support for configuration files in the following locations: (3), …
added support for configuration files in the following locations: (3), …
added support for configuration files in the following locations: (3), …