tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.68k stars 415 forks source link

Sourcing tmux conf returns 126 in WSL Ubuntu #275

Open PiyushPawar17 opened 5 months ago

PiyushPawar17 commented 5 months ago

Sourcing the tmux.conf file returns 126 in WSL Ubuntu

Error

'~/.tmux/plugins/tpm/tpm' returned 126

OS

Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy

tmux version

tmux 3.4

tmux conf location (symlinked via stow)

~/.config/tmux/tmux.conf

tmux conf

set-option -sa terminal-features  ",xterm-256color:RBG"
set-option -sa terminal-overrides ",xterm*:Tc"
set-option -g focus-events on

# Bind r to source this file
unbind r
bind r source ~/.config/tmux/tmux.conf

set -g prefix ^A
set -g base-index 1
set -g pane-base-index 1

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

set -g @catppuccin_window_left_separator ""
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_default_text "#W"
set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#W#{?window_zoomed_flag,(),}"
set -g @catppuccin_status_modules_left "session"
set -g @catppuccin_status_left_separator  " "
set -g @catppuccin_status_right_separator " "
set -g @catppuccin_status_right_separator_inverse "no"
set -g @catppuccin_status_fill "icon"
set -g @catppuccin_status_connect_separator "no"
set -g @catppuccin_directory_text "#{b:pane_current_path}"
set -g @catppuccin_date_time_text "%H:%M"

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

run '~/.tmux/plugins/tpm/tpm'

Also, no theme is getting applied (want to install Catppuccin, have tried Dracula which was also not applied)

Solutions that I tried

xiaosq2000 commented 5 months ago

Hi, have you ever tried tmux 3.3a?

PiyushPawar17 commented 5 months ago

@xiaosq2000 I've tried tmux 3.2a (installed via apt)

xiaosq2000 commented 5 months ago

@xiaosq2000 I've tried tmux 3.2a (installed via apt)

I suggest you checking if the path, '~/.tmux/plugins/tpm/tpm' is correct. I have just reduplicated your setup (Ubuntu 22.04 in Docker, with tmux 3.4) with a wrong path, and it returned 127.

PiyushPawar17 commented 5 months ago

@xiaosq2000 I've tried tmux 3.2a (installed via apt)

I suggest you checking if the path, '~/.tmux/plugins/tpm/tpm' is correct. I have just reduplicated your setup (Ubuntu 22.04 in Docker, with tmux 3.4) with a wrong path, and it returned 127.

Yes, the path is correct. Yours might be returning 127 because you might not have cloned tpm into ~/.tmux/plugins. I had this issue earlier and realized that I had not installed the tpm.