Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Clumsy-Coder opened this issue Sep 11, 2023 · 4 comments
Open

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

Clumsy-Coder opened this issue Sep 11, 2023 · 4 comments

Comments

@Clumsy-Coder
Copy link

Clumsy-Coder commented Sep 11, 2023

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

Clumsy-Coder added a commit to Clumsy-Coder/dotfiles that referenced this issue Sep 30, 2023
  ## what
  - move loading plugins to `tmux.conf`
    - move loading plugins from `./tools/tmux/plugins.tmux.conf` to `./tools/tmux/tmux.conf`

  ## how

  ## why
  -  since im using config from https://github.com/gpakosz/.tmux , it
     doesn't seem to load plugins if sourcing from another file
     - check gpakosz/.tmux#671

  ## where
  - ./tools/tmux/tmux.conf

  ## usage
Clumsy-Coder added a commit to Clumsy-Coder/dotfiles that referenced this issue Sep 30, 2023
  ## what
  - move loading plugins to `tmux.conf`
    - move loading plugins from `./tools/tmux/plugins.tmux.conf` to `./tools/tmux/tmux.conf`

  ## how

  ## why
  -  since im using config from https://github.com/gpakosz/.tmux , it
     doesn't seem to load plugins if sourcing from another file
     - check gpakosz/.tmux#671

  ## where
  - ./tools/tmux/tmux.conf

  ## usage
@gpakosz
Copy link
Owner

gpakosz commented Nov 27, 2023

Hello @Clumsy-Coder,

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

@gpakosz
Copy link
Owner

gpakosz commented Jan 30, 2024

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants