gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
21.73k stars 3.34k forks source link

tpm not downloading additional plugins from `tmux.conf.local` #671

Open Clumsy-Coder opened 11 months ago

Clumsy-Coder commented 11 months ago

TPM doesn't seem to download tmux plugins when their defined in tmux.conf.local

commands run

rm -rf ~/.local/share/tmux ~/.config/tmux ~/.config/oh-my-tmux
git clone https://github.com/gpakosz/.tmux.git ~/.config/oh-my-tmux
mkdir -p ~/.config/tmux
ln -s ~/.config/oh-my-tmux/.tmux.conf ~/.config/tmux/tmux.conf
cp ~/dotfiles/tools/tmux/tmux.conf ~/.config/tmux/tmux.conf.local
tmux

~/.config/tmux/tmux.conf.local

source-file ~/dotifles/tools/tmux/plugins.tmux.conf

~/dotifles/tools/tmux/plugins.tmux.conf

set -g @plugin 'tmux-plugins/tmux-sensible'

ls -lah ~/.config/tmux

drwxr-xr-x   5 umar  staff   160B 12 Sep 09:11 .
drwxr-xr-x  22 umar  staff   704B 12 Sep 09:11 ..
drwxr-xr-x   4 umar  staff   128B 12 Sep 09:11 plugins
lrwxr-xr-x   1 umar  staff    41B 12 Sep 09:11 tmux.conf -> /Users/umar/.config/oh-my-tmux/.tmux.conf
-rw-r--r--   1 umar  staff    76B 12 Sep 09:11 tmux.conf.local

ls -lah ~/.config/tmux/plugins

total 8
drwxr-xr-x   4 umar  staff   128B 11 Sep 10:30 .
drwxr-xr-x   6 umar  staff   192B 11 Sep 10:30 ..
drwxr-xr-x  18 umar  staff   576B 11 Sep 10:30 tpm
-rw-r--r--   1 umar  staff    70B 11 Sep 10:30 tpm_log.txt

Not sure what am I missing

gpakosz commented 9 months ago

Hello @Clumsy-Coder,

Oh my tmux! doesn't support sourcing yet another configuration file from the .local customization file.

gpakosz commented 7 months ago
source-file [-Fnqv] path ...
              (alias: source)
        Execute commands from one or more files specified by path (which may be glob(7) patterns).  If -F is present, then path is expanded as a format.  If -q is given, no error will be returned if path
        does not exist.  With -n, the file is parsed but no commands are executed.  -v shows the parsed commands and line numbers if possible.

It's not trivial to support glob patterns in path, as well as the different options.

atrestis commented 6 months ago

Hello, I got the same issue, my plugins definition (for installation) is under user customizations section, however whenever I try to update/install new plugins I get the error of: "GitHub doesn't seem to be reachable, skipping installing and/or updating tpm and plugins...".

My tmux.conf.local is a symbolic link to my dotfiles configuration, although I don't see how this would be a problem.

Can anyone suggest any hints on how to resolve this? Cheers

augustobmoura commented 4 months ago

Hello, I got the same issue, my plugins definition (for installation) is under user customizations section, however whenever I try to update/install new plugins I get the error of: "GitHub doesn't seem to be reachable, skipping installing and/or updating tpm and plugins...".

My tmux.conf.local is a symbolic link to my dotfiles configuration, although I don't see how this would be a problem.

Can anyone suggest any hints on how to resolve this? Cheers

This is definitely a problem, I have a similar setup, where .tmux.conf.local and tmux-fingers wasn't working at all. I fixed it by copying the file instead of linking it. A hard link would probably also make it work