gpakosz / .tmux

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

Annoying messages displayed on window while taking actions #685

Closed roychshao closed 8 months ago

roychshao commented 8 months ago

Hello, I am just using the last version in master branch, but when I taking some actions like update or maximize window, it send below messages to my window.

I have no idea if this is an error, because the function seems to work good after I press ESC to escape. It just keep sending messages to my window like below.

'cut -c3- '/home/roy/.tmux.conf' | sh -s __apply_plugins '1' 'true' 'true' 'true'' returned 2
'cut -c3- '/home/roy/.tmux.conf' | sh -s _maximize_pane '0' '%3'' returned 2

Can someone help me to solve this problem or stop tmux from sending these annoying messages ? Thanks a lot !

OS: Ubuntu 22.04 LTS tmux: 3.2a

ps: my .tmux.conf and .tmux.conf.local is all the same with the one in lastest master branch

roychshao commented 8 months ago

Attached are the results of executing

cut -c3- ~/.tmux.conf | sh -sx _maximize_pane
+ :                                                                                                  
+ set -e                                                                                             
+ unset GREP_OPTIONS                                                                                 
+ export LC_NUMERIC=C                                                                                
+ set +H                                                                                             
+ + printf                                                                                           
sed -E s///                                                                                          
+ uname -s                                                                                           
+ _uname_s=Linux                                                                                     
+ [ -z /tmp/tmux-1000/default,7949,0 ]                                                               
+ [ -z /tmp/tmux-1000/default ]                                                                      
+ [ -z /usr/bin/tmux ]                                                                               
+ [ /usr/bin/tmux = tmux ]                                                                           
+ tmux -V                                                                                            
+ + awk {gsub(/[^0-9.]/, "", $2); print ($2+0) * 100}                                                
/usr/bin/tmux -S /tmp/tmux-1000/default -V                                                           
+ _tmux_version=320                                                                                  
+ command -v pkill                                                                                   
+ _toggle_mouse                                                                                      
+ tmux show -gv mouse                                                                                
+ /usr/bin/tmux -S /tmp/tmux-1000/default show -gv mouse                                             
+ old=off                                                                                            
+ new=                                                                                               
+ [ off = on ]                                                                                       
+ new=on                                                                                             
+ tmux set -g mouse on                                                                               
+ /usr/bin/tmux -S /tmp/tmux-1000/default set -g mouse on                                            
sh: 1652: Syntax error: "(" unexpected

and

cut -c3- ~/.tmux.conf | sh -sx __apply_plugins
+ :                                                                                                  
+ set -e                                                                                             
+ unset GREP_OPTIONS                              
+ export LC_NUMERIC=C
+ set +H          
+ + sed -E s///
printf               
+ uname -s                                                                                           
+ _uname_s=Linux
+ [ -z /tmp/tmux-1000/default,7949,0 ]
+ [ -z /tmp/tmux-1000/default ]
+ [ -z /usr/bin/tmux ]
+ [ /usr/bin/tmux = tmux ]
+ awk {gsub(/[^0-9.]/, "", $2); print ($2+0) * 100}      
+ tmux -V                                         
+ /usr/bin/tmux -S /tmp/tmux-1000/default -V    
+ _tmux_version=320
+ command -v pkill
+ __apply_plugins   
+ window_active=     
+ tmux_conf_update_plugins_on_launch=
+ tmux_conf_update_plugins_on_reload=
+ tmux_conf_uninstall_plugins_on_reload=
+ [ -z /home/roy/.tmux/plugins ]
+ mkdir -p /home/roy/.tmux/plugins
+ tmux show -gvq @tpm_plugins
+ tpm_plugins=                                    
+ tmux show -gv @plugin                           
+ [ -z  ]                                         
+ [ -z  ]                                         
+ _is_true                                        
+ [  = true ]                                     
+ [  = yes ]                                      
+ [  = 1 ]                                        
sh: 1652: Syntax error: "(" unexpected

Please help me for the problem~~ I can't thank you enough!

gpakosz commented 8 months ago

Hello @roychshao 👋

I just tried with a stock Ubuntu 22.04 Vagrant box and I can't reproduce

$ vagrant init bento/ubuntu-22.04
$ vagrant up
$ vagrant ssh
$ git clone https://github.com/gpakosz/.tmux.git
$ ln -s .tmux/.tmux.conf
$ cp .tmux/.tmux.conf.local .
$ tmux

I believe you did change the content of .tmux.conf.

roychshao commented 8 months ago

Hello @roychshao 👋

I just tried with a stock Ubuntu 22.04 Vagrant box and I can't reproduce

$ vagrant init bento/ubuntu-22.04
$ vagrant up
$ vagrant ssh
$ git clone https://github.com/gpakosz/.tmux.git
$ ln -s .tmux/.tmux.conf
$ cp .tmux/.tmux.conf.local .
$ tmux

I believe you did change the content of .tmux.conf.

I'm sorry, your right, I just see there is a place that is modified after checking. thanks for your reply, this project is awesome.