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 does not install plugins on M1 Mac (Ventura) #260

Open
lightbluepoppy opened this issue Sep 2, 2023 · 8 comments
Open

TPM does not install plugins on M1 Mac (Ventura) #260

lightbluepoppy opened this issue Sep 2, 2023 · 8 comments

Comments

@lightbluepoppy
Copy link

lightbluepoppy commented Sep 2, 2023

Description

I installed tmux via Homebrew and did git clone tpm but it does not let me install plugins.

Expected Behavior

~/.tmux/plugins                                                             
❯ ls
tpm tmux-sensible ...
❯

Actual Behavior

Plugins are not shown in ~/.tmux/plugins

TMUX environment reloaded.                 

Done, press ESCAPE to continue. 
~/.tmux/plugins/tpm/scripts                                 
❯ ./install_plugins.sh
❯
~/.tmux/plugins                                                             
❯ ls
tpm
❯

Steps to Reproduce the Problem

.tmux.conf

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'dracula/tmux'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'christoomey/vim-tmux-navigator'

# https://www.reddit.com/r/neovim/comments/35h1g1/neovim_slow_to_respond_after_esc/
set -sg escape-time 0
set -g status-interval 0

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

Specifications

❯ neofetch
                    'c.          user 
                 ,xNMM.          ---------------------- 
               .OMMMMo           OS: macOS 13.2.1 22D68 arm64 
               OMMM0,            Host: Mac14,9 
     .;loddo:' loolloddol;.      Kernel: 22.3.0 
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 20 mins 
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 73 (brew) 
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.8.1 
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 1147x745@2x 
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua 
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Amethyst 
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    Terminal: kitty 
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   CPU: Apple M2 Pro 
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   GPU: Apple M2 Pro 
    kMMMMMMMMMMMMMMMMMMMMMMd     Memory: 2538MiB / 32768MiB 
     ;KMMMMMMMWXXWMMMMMMMk.
       .cooc,.    .,coo:.                                
                                                         

@lightbluepoppy
Copy link
Author

lightbluepoppy commented Sep 2, 2023

Everything resolved after renaming .tmux.conf to tmux.conf. I got an error that says "tmux.conf is missing" after double-clicking .tmux/plugins/tpm/scripts/install_plugins.sh but not in a terminal. This must be a real issue.

@mok0
Copy link

mok0 commented Sep 18, 2023

I have the same problem on macOS 13.5 (Ventura), tmux simply seems to ignore plugins.

@gianu
Copy link

gianu commented Sep 21, 2023

same issue on macOS 13.5 :(

My tmux configuration is in ~/.config/tmux/tmux.conf and tpm is installed in ~/.tmux/plugins/tpm

@gianu
Copy link

gianu commented Sep 21, 2023

got it working after adding:

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

to my .config/tmux/tmux.conf file.

@joshmedeski
Copy link

If you tmux file is located at ~/.config/tmux/tmux.conf I highly recommend following these steps:

  1. Delete the ~/.tmux directory entirely. NOTE: make sure to backup any custom config you may have in there.
  2. Clone tpm to ~/.config/tmux/plugins/tpm NOTE: you may have to mkdir plugins before running the clone command
    git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
  3. Rerun install commands

I can update the README to reflect that, but my buddy ran into this problem too and this fixed it for him.

@jsvensson
Copy link

If you tmux file is located at ~/.config/tmux/tmux.conf I highly recommend following these steps:

I've just started rewriting a bunch of dotfiles from scratch and ran into this issue. Above comment worked just fine. 👍🏻

@giograno
Copy link

giograno commented Feb 1, 2024

I have a related issue in macOS Sonoma.
My configuration is in ~/.tmux.conf and my TMUX_PLUGIN_MANAGER_PATH is ~/.tmux/plugins/.

When I try to install a plugin, it ends up in ~/.tmux/plugins/tmux/ and both install and update does not seem to have an effect. I get something like:

Already installed "tmux"
Already installed "tpm"

TMUX environment reloaded.

@GuiMarthe
Copy link

Had this issue for a while, and for installations through nix one needs to add ben nix-profile bin directory like this:

set-environment -g PATH "/Users/<USERNAME>/.nix-profile/bin:/opt/homebrew/bin:/bin:/usr/bin"

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

7 participants