.tmux.conf:41: syntax error and .tmux.conf:100: unknown key: if
Thanks for this awesome config file. I have two issues with my Mac (Majave 10.14.6 ) setup.
unbind } # swap-pane -D
unbind { # swap-pane -U
/Users/liuj1/.tmux.conf:41: syntax error
if I commented line 41, then I have
/Users/liuj1/.tmux.conf:42: syntax error
It has syntax error, but if I add \ like below, it has no error, had look with previous bugs seem it is mentioned something similar
unbind \} # swap-pane -D
unbind \{ # swap-pane -U
- This line not working
bind \ if '[ #{pane_index} -eq 1 ]' \
'swap-pane -s "!"' \
'select-pane -t:.1 ; swap-pane -d -t 1 -s "!"'
It complains:
/Users/liuj1/.tmux.conf:100: unknown key: if
I add \ like below, and it returns no error.
bind \\ if '[ #{pane_index} -eq 1 ]' \
'swap-pane -s "!"' \
'select-pane -t:.1 ; swap-pane -d -t 1 -s "!"'
After I got these 2 changed, the rest works fine.
It looks like with my Mac, need to escape { } and \
Thanks a ton fixed it for me on 10.15.5 using iterm2 and zsh ;-)
on Kubuntu 20.04, using konsole I had very similar problems. the above two suggestions fixed 2 of 3 issues. the 3rd was a custom vertical split (C-a \ ) I was using : C-a | , is std. I tried escaping it with another \ but that failed, so I just resorted to binding i . makes sense to me. thanks for previous efforts : made my life much easier.
On my Mac with MacOS v11.0 (Big Sur) I am using iterm2 and zsh
Same and suggestions worked. Thank you! Ubuntu 20.04 Bash-it
Works for me, thanks! This should be added to the repo :|
Thank you for your suggestions.
Thank you for your suggestions.
I had de same problem with osx big sur, this fix works perfectly. Thanks
After these fixes works perfectly. I am on MacOS using ZSH in iTerm2/Alacritty.
thanks, it works fine for me
Works for me, thanks!
Thanks worked for me
Works for me, thanks!