tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.95k stars 420 forks source link

TPM is not loading plugins. #152

Closed moonrumble closed 5 years ago

moonrumble commented 5 years ago

It seems like scritps/source_plugins.sh is behaving differently on my machine but I am not able figure out the issue.

I have added debug statments to source_plugins.sh

  silently_source_all_tmux_files() {
    local plugin_path="$1"
    local plugin_tmux_files="$plugin_path*.tmux"
    echo $plugin_path
    echo $plugin_tmux_files
    if plugin_dir_exists "$plugin_path"; then
        echo step1
        for tmux_file in $plugin_tmux_files; do
            # if the glob didn't find any files this will be the
            # unexpanded glob which obviously doesn't exist
            [ -f "$tmux_file" ] || continue
            echo step2
            # runs *.tmux file as an executable
            $tmux_file >/dev/null 2>&1
        done
    fi
 }

It is printing

/home/AP/.tmux/plugins//tpm
/*.tmuxP/.tmux/plugins//tpm
/home/AP/.tmux/plugins//tmux-sensible
/*.tmuxP/.tmux/plugins//tmux-sensible
/home/AP/.tmux/plugins//tmux-pain-control
/*.tmuxP/.tmux/plugins//tmux-pain-control
/home/A/.tmux/plugins//tmux-sessionist
/*.tmuxP/.tmux/plugins//tmux-sessionist
/home/AP/.tmux/plugins//tmux-prefix-highlight
/*.tmuxP/.tmux/plugins//tmux-prefix-highlight

Step 1 and Step 2 never gets printed. If I execute them directly it works as expected.

nrobert13 commented 5 years ago

if you mean that you have to hit the install plugin key binding every time you start tmux, I'm facing the same. not sure if this is the desired behavior...

moonrumble commented 5 years ago

Even if I hit install plugin key, it doesn't load any plugins.

marioblokland commented 5 years ago

I had also an issue where plugins were not being loaded. I defined my list of plugin as

set -g @tpm_plugins '...'
set -g @tpm_plugins '...'
set -g @tpm_plugins '...'

After changing that to:

set -g @plugin '...'
set -g @plugin '...'
set -g @plugin '...'

all plugins have been loaded correctly.

nrobert13 commented 5 years ago

I already have the @plugin form, also tried now with @tpm_plugin, but still the same. I'm using 2.6 and 2.8 but none of them loads automatically, I always have to hit the install key combination. I also had to put the plugins with their full github path like: set -g @plugin 'https://github.com/tmux-plugins/tpm.git' because it couldn't clone the repos with the form: set -g @plugin 'tmux-plugins/tpm'

nrobert13 commented 5 years ago

also tried to add this in tmux.conf run '~/.tmux/plugins/tpm/bin/install_plugins' which is what the install keybinding does, if I got it correctly.

But still have to hit the install keybinding to activate the plugin...

nrobert13 commented 5 years ago

Hi @moonrumble, how did u solve the issue?

backpropper commented 4 years ago

is this solved? I added plugins to change the status line but nothing is being shown

adiospeds commented 4 years ago

same - my plugins are not getting installed with tpm

backpropper commented 4 years ago

In my case, adding the whole tpm code at the end of the tmux.conf file helped resolved the issue.

adiospeds commented 4 years ago

Got it fixed by following @kcoyner's answer from this link: https://github.com/tmux-plugins/tpm/issues/127#issuecomment-461490579