gpakosz / .tmux

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

When using <prefix> +, failed and return 'cut -c3- ~/.tmux.conf | sh -s _maximize_pane "2" %4' returned 1 #558

Closed zzl1327 closed 2 years ago

zzl1327 commented 2 years ago

It seems freeze the mouse mode (could not operate other pane, however still under mouse mode);

And not create any tag here:

image

Finally will hang here:

image
gpakosz commented 2 years ago

Hello @zzl1327 👋

Can you please tell me what OS, terminal emulator and tmux version you're using?

zzl1327 commented 2 years ago

Hi @gpakosz

Currently, I'm using xterm in CentOS;

And tmux version is following:

tmux -V tmux 2.7-rc

Thanks

Edwin

gpakosz commented 2 years ago

Can you please make sure you're using the latest commit of Oh my tmux!? This is commit 9a2387c0c7aa8d12cff06d6be17251e8ebdfd034

zzl1327 commented 2 years ago

I think it is the latest << git log --name-status HEAD^..HEAD commit 9a2387c0c7aa8d12cff06d6be17251e8ebdfd034 Author: Gregory Pakosz gregory.pakosz@gmail.com Date: Fri Jan 14 07:45:06 2022 +0100

gpakosz commented 2 years ago

Can you please, from a tmux pane do

$ cut -c3- ~/.tmux.conf | sh -sx _maximize_pane $(tmux display -p '#S #D')

And paste what's been outputted?

zzl1327 commented 2 years ago

/u/ziling :-) cut -c3- ~/.tmux.conf | sh -sx _maximize_pane $(tmux display -p '#S #D') Illegal variable name.

gpakosz commented 2 years ago

Is /u/zilling :-) your prompt?

gpakosz commented 2 years ago

Can you try

$ cut -c3- ~/.tmux.conf | sh -sx _maximize_pane $(tmux display -p '#{session_name} #D')
zzl1327 commented 2 years ago

cut -c3- ~/.tmux.conf | sh -sx _maximize_pane $(tmux display -p '#{session_name} #D' ) Illegal variable name.

Seems 'cut' could work successfully

gpakosz commented 2 years ago

Are you sure you didn't modified the content of .tmux.conf?