tmux-plugins / tpm

Tmux Plugin Manager
MIT License
12.32k stars 433 forks source link

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

Open lightbluepoppy opened 1 year ago

lightbluepoppy commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

gianu commented 1 year ago

same issue on macOS 13.5 :(

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

gianu commented 1 year ago

got it working after adding:

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

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

joshmedeski commented 1 year ago

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 commented 1 year ago

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 commented 10 months ago

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 commented 8 months ago

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"