tony / tmux-config

:green_book: Example tmux configuration - screen + vim key-bindings, system stat, cpu load bar.
http://tony.github.com/tmux-config/
1.81k stars 478 forks source link

.tmux.conf:94: usage: send-keys [-lRM] [-t target-pane] key ... #35

Open eugenweissbart opened 7 years ago

eugenweissbart commented 7 years ago

OS: Debian 9.0 tmux version: 2.3-4

The problem seems to be with these lines of code: # Vi copypaste mode set-window-option -g mode-keys vi if-shell "test '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 4 \)'" 'bind-key -Tcopy-mode-vi v send -X begin-selection; bind-key -Tcopy-mode-vi y send -X copy-selection-and-cancel' if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 4\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'bind-key -t vi-copy v begin-selection; bind-key -t vi-copy y copy-selection'

victor-yarema commented 7 years ago

I'm using Ubuntu 17.04 and right after installation I've got the same problem. I have "tmux 2.3". Currently I have simply commented that line (#94) since it looks like it is supposed to be used with higher version anyway.

victor-yarema commented 7 years ago

BTW, that line was added with commit https://github.com/tony/tmux-config/commit/4e6c6381977e168d81ef14daea7f1bf83e50f51e . From what I see in comment "get copy-pasting working with tmux v2.4" I can just guess that it wasn't tested on tmux with version < 2.4.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This bot is used to handle issues where the issue hasn't been discussed or has gone out of date. If an issue isn't resolved and handled in a certain period of time, it may be closed. If you would like your issue re-opened, please create a fresh issue with the latest, up to date information and mention this issue in it.

stale[bot] commented 3 years ago

Thank you for updating this issue. It is no longer marked as stale.