Skip to content

Automatic installation issue and workaround #105

Description

@leonsenft

The instructions for automatic plugin installation only install tpm but not any other plugins.

The issue is that the tpm/bin/install_plugins script depends on the TMUX_PLUGIN_MANAGER_PATH being set, but that isn't done until tpm/tpm is run. But tpm/tpm has to be run after plugins are installed to correctly source them. Calling it both before and after the plugin install script seems unnecessary.

Perhaps the install script could be modified to setup the path env variable if missing?

For now a workaround is to set TMUX_PLUGIN_MANAGER_PATH manually before the automatic installation code.

setenv -g TMUX_PLUGIN_MANAGER_PATH '$HOME/.tmux/plugins/'

if "test ! -d ~/.tmux/plugins/tpm" \
  "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && \
      ~/.tmux/plugins/tpm/bin/install_plugins'"

run '~/.tmux/plugins/tpm/tpm'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions