gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
21.73k stars 3.34k forks source link

invalid environment variable #697

Closed Evollt closed 7 months ago

Evollt commented 8 months ago

/Users/evollt/.tmux.conf:1117: invalid environment variable '"$TMUX_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} source "$TMUX_CONF"' returned 1

When i reload configuration.

I changed this string: tmux_conf_theme_status_left=${tmux_conf_theme_status_left-' ❐ #S | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} '}

gpakosz commented 8 months ago

Hello @Evollt,

gpakosz commented 7 months ago

Hello @Evollt,

Any news?

sethraymond commented 3 months ago

Sorry to necro this, but I'm also running into this issue. I'm using Ubuntu 22.04 with tmux 3.2a.

When I try to tmux source ~/.config/tmux/tmux.conf, I get a 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration' returned 127 error. When I launch tmux, I see some components of the status line updated properly (e.g. colors), but executing <prefix> + r gives me the same cut error, followed by the '"$TMUX_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} source "$TMUX_CONF"' returned 127 error the OP posted.

I believe there's some issue with tpm integration. I noticed that the ~/.config/tmux/plugins/ directory isn't getting created when I call out plugins in my tmux.conf.local file. I've commented out all of my plugins and removed all of the content from my status line that relies on the plugins and that's what leads me to the errors I pointed out above.

gpakosz commented 3 months ago

Hello @sethraymond,

I suggest you start the setup over, make sure you remove all config files, kill all tmux processes. Then try to add TPM plugins 1 by 1.

sethraymond commented 3 months ago

Thanks for the quick reply. Seems like killing and restarting tmux processes did it (but somehow rebooting did not?)