Closed
Description
Steps to reproduce
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
).
I'm using tmux 3.3a btw.