Ver código fonte

Improve tmux/zsh usability

Add copy/paste from tmux
Enable command searching
Andrew Swistak 3 anos atrás
pai
commit
cf4dc1f2a2
3 arquivos alterados com 8 adições e 1 exclusões
  1. 6 0
      tmux.conf
  2. 1 1
      vim/bundle/YouCompleteMe
  3. 1 0
      zshrc

+ 6 - 0
tmux.conf

@@ -18,3 +18,9 @@ setw -g mouse on
 set-option -ga terminal-overrides ",xterm-256color:Tc"
 set -g default-terminal "screen-256color"
 
+set-option -g focus-events on
+
+set-window-option -g mode-keys vi
+bind-key -T copy-mode-vi v send -X begin-selection
+bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
+bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"

+ 1 - 1
vim/bundle/YouCompleteMe

@@ -1 +1 @@
-Subproject commit 94cfacd11ff97643a32409671fed072e3b1412d6
+Subproject commit 7684b6c6b49f8d3bdbd17ecdc9ee7d228039808e

+ 1 - 0
zshrc

@@ -52,6 +52,7 @@ bindkey '^[OF' end-of-line
 bindkey '^[[3~' delete-char
 bindkey '^[[5~' beginning-of-buffer-or-history
 bindkey '^[[6~' end-of-buffer-or-history
+bindkey '^R' history-incremental-search-backward
 
 export PAGER=less
 export DOTFILES=$HOME/Documents/dotfiles