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

Theme isn't installing when I press Ctrl + b followed by capital I #120

Closed
JwanKhalaf opened this issue Jan 24, 2024 · 16 comments
Closed

Theme isn't installing when I press Ctrl + b followed by capital I #120

JwanKhalaf opened this issue Jan 24, 2024 · 16 comments

Comments

@JwanKhalaf
Copy link

JwanKhalaf commented Jan 24, 2024

Hello

Here's my config..

When I press Ctrl + b followed by capital I, I get shown this:

image

But the Tmux's look doesn't update! For some reason, I still see this:

image

What am I missing? I of course tried re-sourcing the config:

 tmux source ~/.config/tmux/tmux.conf

I also tried rebooting, but nothing seems to work. Also, when I look at ~/.config/tmux/plugins I do not see catppuccin listed!

~ ❯ l ~/.config/tmux/plugins
Permissions Size User Group Date Modified Name
drwxr-xr-x     - j    j     24 Jan 07:59  tmux
drwxr-xr-x     - j    j     24 Jan 07:59  tmux-sensible
drwxr-xr-x     - j    j     24 Jan 07:59  tmux-yank
drwxr-xr-x     - j    j     24 Jan 12:15  tpm
drwxr-xr-x     - j    j     24 Jan 07:59  vim-tmux-navigator
~ ❯
@igops
Copy link

igops commented Jan 25, 2024

same problem 👍

@bwbuhse
Copy link

bwbuhse commented Jan 25, 2024

Same here; the exact same config worked on my laptop a while ago but I've been trying to get tmux set up on my desktop and now it won't install.

set -g prefix C-a
bind C-a send-prefix

bind -n C-k clear-history

# set shell
# set -g default-shell /usr/bin/zsh
# set -g default-command /usr/bin/fish

# set term to tmux instead of gnu screen
# this enables proper italics support
set -ga terminal-overrides ",xterm-256color:Tc"
set -g default-terminal "tmux-256color"

setw -g mode-keys vi

set-option -g status-position top

# List of plugins
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @catppuccin_flavour 'mocha'

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

@igops
Copy link

igops commented Jan 28, 2024

@pocco81 @89iuv any thoughts guys?

@89iuv
Copy link
Collaborator

89iuv commented Jan 29, 2024

Can you try to load tpm before you load catppuccin?

Ex:

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

set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'

@igops
Copy link

igops commented Jan 29, 2024

Can you try to load tpm before you load catppuccin?

Ex:

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

set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'

It doesn't work at all :(

@89iuv
Copy link
Collaborator

89iuv commented Jan 29, 2024

From your configuration TPM will download the catppuccin theme and put it in:

~/.config/tmux/plugins/tmux

From the screenshot it looks like it has already been installed.

I can think of 2 ideas you could try:

  1. Update the plugins by using: ctrl+b U and then type "all"
  2. If the previous method fails try to delete the catppuccin folder and reinstall the plugin.

@JwanKhalaf
Copy link
Author

@89iuv where would the catppuccin folder be? I can't see it under ~/.config/tmux/plugins.

@bwbuhse
Copy link

bwbuhse commented Jan 29, 2024

For me, catppuccin is in neither of those places.

~ 
❯ eza -l ~/.config/tmux/plugins                                                               
drwxr-xr-x - ben 13 Nov  2023 tmux
drwxr-xr-x - ben 19 Nov  2023 tmux-pain-control
drwxr-xr-x - ben 13 Nov  2023 tmux-sensible
drwxr-xr-x - ben 13 Nov  2023 tpm

~ 
❯ eza -l ~/.tmux/plugins       
drwxr-xr-x - ben 24 Jan 17:15 tpm

Similarly, when I do ^a + I I get

Already installed "tmux"                                                                                                                [0/0]
Already installed "tpm"            
Already installed "tmux-sensible"  
Already installed "tmux-pain-control"                                 

TMUX environment reloaded.  

with no mention of Catppuccin, even though it's in my config. I've also tried with it before and after the tpm line.

@89iuv
Copy link
Collaborator

89iuv commented Jan 29, 2024

The name of the catppuccin folder is called "tmux"

Please run: ls -al ~/.config/tmux/plugins/tmux and provide the output.

  • this should list the contents of the catppuccin plugin folder

After that please try to run in tmux: ctrl+b U and then type "all", hit enter and provide the output.

  • this should update all plugins in tmux

@JwanKhalaf
Copy link
Author

JwanKhalaf commented Jan 29, 2024

Here's what I get:

~/.config/tmux/plugins/tmux main ❯ ls -lah
total 0
drwxr-xr-x 1 j j  0 Jan 24 07:59 .
drwxr-xr-x 1 j j 94 Jan 24 12:39 ..
~/.config/tmux/plugins/tmux main ❯

Doing ctrl+b U asked me what I wanted to update, I typed all and pressed Enter, then restarted everything, but again, no catppuccin for me.

@bwbuhse
Copy link

bwbuhse commented Jan 29, 2024

Seems like after running the update all it still didn't work (said it was up to date), but then removing the tmux directory under ../plugins and running ctrl+a I again did install it correctly... ? *shrug*

@89iuv
Copy link
Collaborator

89iuv commented Jan 29, 2024

Seems like after running the update all it still didn't work (said it was up to date), but then removing the tmux directory under ../plugins and running ctrl+a I again did install it correctly... ? shrug

I think that somehow TPM created an empty "tmux" directory in the plugins folder (why this happened i do not know). This created the issue above and the only solution seems to be to remove the "tmux" directory from plugins and reinstall the plugin.

@JwanKhalaf
Copy link
Author

Can confirm. Removing the directory with rm -rf ~/.config/tmux/plugins/tmux then re-doing ctrl + b I got the theme installed and showing again! 🎉 Thanks all

@igops
Copy link

igops commented Jan 29, 2024

Confirm removing tmux plugin resolves the issue.

How came the tmux catppuccin plugin is called just tmux? 😱
This is sooooo confusing guys!

@marcusps
Copy link

marcusps commented Mar 3, 2024

tmux-plugins/tpm#273 is closely related -- this may be better thought of as a tpm issue. There is a PR tmux-plugins/tpm#274 under review that would fix it.

@sgoudham
Copy link
Contributor

sgoudham commented Mar 6, 2024

Closing as root cause is a duplicate of #129

@sgoudham sgoudham closed this as completed Mar 6, 2024
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

6 participants