tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.97k stars 419 forks source link

Can't install plugins #127

Open HenryNewcomer opened 6 years ago

HenryNewcomer commented 6 years ago

I'm running a Solus OS distro with Tmux v2.6. For some reason, I can't seem to get TPM to install or activate any plugins. I've tried manually downloading the files from github, and removing my .tmux.conf file, but to no avail.

byxor commented 6 years ago

Same, prefix + I does not work for me at all. It does nothing.

~/.tmux.conf:

# Install plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'

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

I'm running tmux version 2.1

Why can't I install tmux plugins?! :frowning_face:


Nevermind, I forgot to clone the tpm repository to my home directory.

Redominus commented 6 years ago

In my case It doesn't work the set command to add new plugins and also the Ctrl +I. I have had to edit .tmux.con adding the set -g... lines with the plugins and then execute the script: ~/.tmux/plugins/tpm/bin/install_plugins. Using tmux 2.6 on Ubuntu Budgie 18.04

navicore commented 6 years ago

I just had this problem. Workaround for me was adding:

set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.tmux/plugins/'

to .tmux.conf and tmux source ~/.tmux.conf and then LEADER - I worked

kcoyner commented 5 years ago

I also ran into this problem, but finally solved it after reading:

https://github.com/tmux-plugins/tpm/blob/master/docs/tpm_not_working.md

which told me that if I'm using a custom config file for tmux, then I need make my plugin entries like so:

# List of plugins
set -g @tpm_plugins '           \
   tmux-plugins/tpm             \
   tmux-plugins/tmux-sensible   \
   tmux-plugins/tmux-resurrect  \
'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

This format is just slightly different than a plain vanilla install and use of tpm.

I did not hit upon this intially because my tmux config file was the standard ~/.tmux.conf. But the difference was in the fact that my .tmux.conf is from gpakosz and uses a ~/.tmux.conf.local, which is where my tpm settings are sourced from.

Knowledge-Wisdom-Understanding commented 5 years ago

I also ran into this problem, but finally solved it after reading:

https://github.com/tmux-plugins/tpm/blob/master/docs/tpm_not_working.md

which told me that if I'm using a custom config file for tmux, then I need make my plugin entries like so:

# List of plugins
set -g @tpm_plugins '           \
   tmux-plugins/tpm             \
   tmux-plugins/tmux-sensible   \
   tmux-plugins/tmux-resurrect  \
'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

This format is just slightly different than a plain vanilla install and use of tpm.

I did not hit upon this intially because my tmux config file was the standard ~/.tmux.conf. But the difference was in the fact that my .tmux.conf is from gpakosz and uses a ~/.tmux.conf.local, which is where my tpm settings are sourced from.

THIS RIGHT HERE!!! I have been looking for this exact solution since I also use Oh-My-Tmux because it's awesome. Since i had the .tmux.conf.local file as well, this completely solved my problem. THANK YOU SO MUCH!!!!

bjuriewicz commented 5 years ago
# List of plugins
set -g @tpm_plugins '           \
   tmux-plugins/tpm             \
   tmux-plugins/tmux-sensible   \
   tmux-plugins/tmux-resurrect  \
'

that didn't work for me (throws syntax errors) when placed at the end of .tmux.conf.local, also using gpakosz .tmux.conf + I'm using windows WLS. Eventually I placed the:

# Install plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'

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

in the .tmux.conf instead of .tmux.conf.local, which I guess isn't good practice, but seems to work.

StevenXL commented 4 years ago

I also ran into this problem, but finally solved it after reading:

https://github.com/tmux-plugins/tpm/blob/master/docs/tpm_not_working.md

which told me that if I'm using a custom config file for tmux, then I need make my plugin entries like so:

# List of plugins
set -g @tpm_plugins '           \
   tmux-plugins/tpm             \
   tmux-plugins/tmux-sensible   \
   tmux-plugins/tmux-resurrect  \
'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

This format is just slightly different than a plain vanilla install and use of tpm.

I did not hit upon this intially because my tmux config file was the standard ~/.tmux.conf. But the difference was in the fact that my .tmux.conf is from gpakosz and uses a ~/.tmux.conf.local, which is where my tpm settings are sourced from.

This worked great! I'm using thoughtbot dotfiles to manage my configuration, and this was exactly what was needed.

My `tmux.conf.local' looks like this:

# https://github.com/tmux-plugins/tpm
# https://github.com/tmux-plugins/tpm/issues/127
# List of plugins
set -g @tpm_plugins '           \
   tmux-plugins/tpm             \
   tmux-plugins/tmux-sensible   \
   dracula/tmux                 \
'
# set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-sensible'
# set -g @plugin 'dracula/tmux'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
carjuan commented 2 years ago

I also ran into this problem, but finally solved it after reading:

https://github.com/tmux-plugins/tpm/blob/master/docs/tpm_not_working.md

which told me that if I'm using a custom config file for tmux, then I need make my plugin entries like so:

# List of plugins
set -g @tpm_plugins '           \
   tmux-plugins/tpm             \
   tmux-plugins/tmux-sensible   \
   tmux-plugins/tmux-resurrect  \
'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

This format is just slightly different than a plain vanilla install and use of tpm.

I did not hit upon this intially because my tmux config file was the standard ~/.tmux.conf. But the difference was in the fact that my .tmux.conf is from gpakosz and uses a ~/.tmux.conf.local, which is where my tpm settings are sourced from.

THIS!

kirill-martynov commented 2 years ago

I also ran into this problem, but finally solved it after reading:

https://github.com/tmux-plugins/tpm/blob/master/docs/tpm_not_working.md

which told me that if I'm using a custom config file for tmux, then I need make my plugin entries like so:

# List of plugins
set -g @tpm_plugins '           \
   tmux-plugins/tpm             \
   tmux-plugins/tmux-sensible   \
   tmux-plugins/tmux-resurrect  \
'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

This format is just slightly different than a plain vanilla install and use of tpm.

I did not hit upon this intially because my tmux config file was the standard ~/.tmux.conf. But the difference was in the fact that my .tmux.conf is from gpakosz and uses a ~/.tmux.conf.local, which is where my tpm settings are sourced from.

Yeesss, thanks!

diogobaltazar commented 1 year ago

at ~/.tmux.conf:

set -g @tpm_plugins '           \
   tmux-plugins/tpm             \
   tmux-plugins/tmux-sensible   \
   tmux-plugins/tmux-resurrect  \
   tmux-plugins/tmux-continuum  \
'

(ctrl+I still to no avail) Install the plugins with:

. ~/.tmux/plugins/tpm/bin/install_plugins
Isabella-L commented 1 year ago

I ran into the same problem on my Raspberry Pi running Bullseye OS, that my prefix + I does not work at all. Turns out my .tmux/plugins/tpm/ folder somehow had an additional character. So when I navigate to .tmux/plugin it shows one folder with the name tpm~.

This is why my plugin are not installing because the run '~/.tmux/plugins/tpm/tpm' basically goes to nowhere! Renaming the folder to tpm solves the issue.

After this happened, I reinstalled tmux on my wsl but this time the incident didn't happen again.

zhuoqun-chen commented 11 months ago

at ~/.tmux.conf:

set -g @tpm_plugins '           \
   tmux-plugins/tpm             \
   tmux-plugins/tmux-sensible   \
   tmux-plugins/tmux-resurrect  \
   tmux-plugins/tmux-continuum  \
'

(ctrl+I still to no avail) Install the plugins with:

. ~/.tmux/plugins/tpm/bin/install_plugins

I reinstalled tmux via brew and tpm today to solve the return 1 error.

After re-formatting the config as you suggested and manually cd to ~/.tmux/plugins/tpm/bin, then execute install_plugins installed those plugins for me.

Then source tmux again by tmux source ~/.tmux.conf works as expected.

THANK YOU!

NescobarAlopLop commented 7 months ago

Had the same issue with "install" simply not working went over all of the *.sh scripts under ~/.tmux/plugins/tpm/scripts/ and made them executable, now install and other plugins work.

chmod +x ~/.tmux/plugins/tpm/scripts/*.sh
chmod +x ~/.tmux/plugins/tpm/scripts/helpers/*.sh