tpm icon indicating copy to clipboard operation
tpm copied to clipboard

TPM does not install plugins on M1 Mac (Ventura)

Open lightbluepoppy opened this issue 10 months ago • 8 comments

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 avatar Sep 02 '23 20:09 lightbluepoppy

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.

lightbluepoppy avatar Sep 02 '23 22:09 lightbluepoppy

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

mok0 avatar Sep 18 '23 11:09 mok0

same issue on macOS 13.5 :(

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

gianu avatar Sep 21 '23 15:09 gianu

got it working after adding:

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

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

gianu avatar Sep 21 '23 15:09 gianu

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.

joshmedeski avatar Sep 21 '23 16:09 joshmedeski

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. 👍🏻

jsvensson avatar Oct 14 '23 00:10 jsvensson

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.

giograno avatar Feb 01 '24 18:02 giograno

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"

GuiMarthe avatar Mar 19 '24 20:03 GuiMarthe