Closed ww7 closed 8 months ago
Command
run '"$TMUX_PROGRAM" has-session -t dummy 2>/dev/null || tmux new-session -A -s dummy -d; tmux attach-session -t dummy'
Also shows same error.
Hello @ww7 👋
I did try to add the same command you're mentioning to my .local
customization files and there's no error.
You likely added something else.
Please make sure your didn't alter the .conf
file and maybe try again with a stock .local
file.
Hello @gpakosz
On my side the same error with fresh Oh my tmux!
Seems config reload trying to create a session when it already exists.
Seems config reload trying to create a session when it already exists.
Does it happen without using Oh my tmux!?
What OS are you using btw?
@gpakosz
What OS are you using btw?
macOS Sonoma and Linux Ubuntu 20.04, on both reload of config shows error, on latestOh my tmux!
Does it happen without using Oh my tmux!?
On such empty .tmux.conf
new -A -d -s dummy
bind r run '/usr/bin/tmux source /root/.tmux.conf'
set-option -g detach-on-destroy off
resulting '/usr/bin/tmux source /root/.tmux.conf' returned 1
As the previous Tmux configuration-based approach makes error, I solved this with Bash functions.
I want to have some predefined named sessions at tmux start, added to
.tmux.local
(also tried to add
-A
)But after config reload via
prefix+r
shows error:At the same time, config reloads. Would it be possible to omit or suppress this error?