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 is apparently installing plugins but they are not loaded. Windows 10 WSL2 Ubuntu. #271

Open
aams-eam opened this issue Dec 21, 2023 · 1 comment

Comments

@aams-eam
Copy link

aams-eam commented Dec 21, 2023

Hi,

I am using: Windows 10, WSL2, Ubuntu 22.04.3 LTS. I have installed: tmux 3.3a with brew install tmux.
Then I did: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
And added the following configuration file ~/.tmux.conf:

set -g default-terminal "screen-256color"

unbind %
bind | split-window -h 

unbind '"'
bind - split-window -v

unbind r
bind r source-file ~/.tmux.conf

bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5

bind -r m resize-pane -Z

set -g mouse on

set-window-option -g mode-keys vi

bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v"
bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y"

unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode when dragging with mouse

# remove delay for exiting insert mode with ESC in Neovim
set -sg escape-time 10

# tpm plugin
set -g @plugin 'tmux-plugins/tpm'

# list of tmux plugins
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'tmux-plugins/tmux-resurrect' # persist tmux sessions after computer restart
set -g @plugin 'tmux-plugins/tmux-continuum' # automatically saves sessions for you every 15 minutes

set -g @themepack 'powerline/default/cyan'

set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'

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

After that I opened a tmux session and press Ctrl+b Shift+i. I see the following output:

Already installed "tpm"
Installing "vim-tmux-navigator"
   "vim-tmux-navigator" download success
Installing "tmux-themepack"
   "tmux-themepack" download success
Installing "tmux-resurrect"
   "tmux-resurrect" download success
Installing "tmux-continuum"
   "tmux-continuum" download success

TMUX environment reloaded

Done, press ENTER to continue

However, none of the plugins are working. I have tried to follow the same procedure in my machine with Ubuntu 20.04.6 LTS and everything works fine. However, with Windows 10, WSL2, Ubuntu 22.04.3 LTS it is not working. I have another machine with Windows 11, WSL2, Ubuntu 22.04.2 LTS and everything is working fine.

Additionally, I have the following bash version (Just in case it helps...):

GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

I have seen other people mentioning problems with TMUX_PLUGIN_MANAGER_PATH env variable, but I see it is set correctly when I am in a tmux session.

@aams-eam aams-eam changed the title TPM is apparently installing plugins but tyhey are not loaded. Windows 10 WSL2 Ubuntu. TPM is apparently installing plugins but they are not loaded. Windows 10 WSL2 Ubuntu. Dec 26, 2023
@aams-eam
Copy link
Author

aams-eam commented Apr 11, 2024 via email

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

No branches or pull requests

1 participant