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

Sourcing tmux conf returns 126 in WSL Ubuntu #275

Open
PiyushPawar17 opened this issue Feb 17, 2024 · 4 comments
Open

Sourcing tmux conf returns 126 in WSL Ubuntu #275

PiyushPawar17 opened this issue Feb 17, 2024 · 4 comments

Comments

@PiyushPawar17
Copy link

PiyushPawar17 commented Feb 17, 2024

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
Copy link

Hi, have you ever tried tmux 3.3a?

@PiyushPawar17
Copy link
Author

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

@xiaosq2000
Copy link

@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
Copy link
Author

@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.

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

2 participants