Compare commits

...

3 Commits

Author SHA1 Message Date
94ee8df2f9 Rename layout 2vt to window-tall 2018-08-26 18:34:08 +01:00
a180f60a98 Enable vi-mode yank on macOS 2018-08-26 17:35:48 +01:00
fdcf4c701c Add brew package 2018-08-25 15:10:40 +01:00
3 changed files with 5 additions and 1 deletions

View File

@@ -3,5 +3,8 @@
- apt:
- tmux
- xsel
- brew:
- tmux
- reattach-to-user-namespace
- symlink:
- {src: tmux.conf, dst: ~/.tmux.conf}

View File

@@ -71,7 +71,8 @@ bind-key C-u copy-mode -u
# Begin selection in copy mode with v not Space
bind-key -T copy-mode-vi v send-keys -X begin-selection
# Yank to the system clipboard in copy mode
if -b '[ "`uname`" = "Linux" ]' \
if -b '[ "`uname`" = "Darwin" ]' \
"bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'" \
"bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xsel -i -p && xsel -o -p | xsel -i -b'"
# Left status style