tmux-config icon indicating copy to clipboard operation
tmux-config copied to clipboard

tmux 3.0 errors

Open LockeAG opened this issue 5 years ago • 7 comments
trafficstars

I'm experimenting some errors with MacOS Catalina and latest Tmux 3.0

.tmux.conf:43: syntax error

that seems to be related with:

# Unbind default key bindings, we're going to override
 11 unbind "\$" # rename-session
 10 unbind ,    # rename-window
  9 unbind %    # split-window -h
  8 unbind '"'  # split-window
  7 unbind }    # swap-pane -D
  6 unbind {    # swap-pane -U
  5 unbind [    # paste-buffer
  4 unbind ]
  3 unbind "'"  # select-window...

Seems to be a problem with the lack of '' , maybe I will try unbind '{' in all special characters

Then de next error is with the conditional statement if , that may be because is now needed de if-shell???

If somebody has a guide on how to migrate this to Tmux 3.0, will be very appreciated

LockeAG avatar Dec 02 '19 19:12 LockeAG

In the meantime, if you're using brew, here's a good article on how to downgrade to v2.9a: https://medium.com/@wpcarro/brewing-an-old-batch-of-tmux-81c0a62715f9

nate-double-u avatar Dec 06 '19 22:12 nate-double-u

So I went through, and I added \ (the slash) in front of the brace. After trying tmux source ~/.tmux.conf again it said I had another error with another brace. I did the same. Then I got your if error. On line 98, I added another \ to escape the \ that was already there. I reloaded it and it worked. I hope this wasn't too confusing to read.

Sammyalhashe avatar Dec 26 '19 02:12 Sammyalhashe

I'm having the same issue. Are you willing to do a PR on this? (or diff)

BirkhoffLee avatar Dec 29 '19 16:12 BirkhoffLee

This PR (https://github.com/samoshkin/tmux-config/pull/31) fixed the issue for me.

MichaelAllen avatar Dec 29 '19 17:12 MichaelAllen

If anyone wants to install the most recent tmux 2.9:

brew uninstall tux && brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/c2a5cd21a94f5574458e16198f2c4a1b7a93a0c9/Formula/tmux.rb && brew pin tmux

BirkhoffLee avatar Dec 29 '19 17:12 BirkhoffLee

If anyone wants to install the most recent tmux 2.9:

brew uninstall tux && brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/c2a5cd21a94f5574458e16198f2c4a1b7a93a0c9/Formula/tmux.rb && brew pin tmux

you are missing an 'm' in tmux. The correct command is: brew uninstall tmux && brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/c2a5cd21a94f5574458e16198f2c4a1b7a93a0c9/Formula/tmux.rb && brew pin tmux

bgulla avatar Jan 06 '20 12:01 bgulla

I think macOS somehow autocorrected it to tux. Thanks!

On Jan 6, 2020, at 8:02 PM, Brandon [email protected] wrote:

 If anyone wants to install the most recent tmux 2.9:

brew uninstall tux && brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/c2a5cd21a94f5574458e16198f2c4a1b7a93a0c9/Formula/tmux.rb && brew pin tmux

you are missing an 'm' in tmux. The correct command is: brew uninstall tmux && brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/c2a5cd21a94f5574458e16198f2c4a1b7a93a0c9/Formula/tmux.rb && brew pin tmux

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

BirkhoffLee avatar Jan 06 '20 16:01 BirkhoffLee