Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. # Set prefix to Ctrl-A
  2. set-option -g prefix C-a
  3.  
  4. # Set xterm as default terminal
  5. set -g default-terminal "xterm"
  6. set -g xterm-keys on
  7.  
  8. # Powerline config
  9. source "/Library/Python/2.7/site-packages/powerline/bindings/tmux/powerline.conf"
  10.  
  11. # VI-mode for yanking
  12. set-window-option -g mode-keys vi
  13. bind-key -t vi-copy 'v' begin-selection
  14. bind-key -t vi-copy 'y' copy-pipe "pbcopy"
  15.  
  16. # Mouse mode
  17. set -g mode-mouse on
  18. set -g mouse-resize-pane on
  19. set -g mouse-select-pane on
  20. set -g mouse-select-window on
  21.  
  22. # Run powerline daemon
  23. run-shell "powerline-daemon -q"
  24.  
  25. # No delay on pressing escape key
  26. set -sg escape-time 0
  27.  
  28. # Switch panes only once per command. No '-r' option
  29. bind-key Up select-pane -U
  30. bind-key Down select-pane -D
  31. bind-key Left select-pane -L
  32. bind-key Right select-pane -R
  33.  
  34. # New window with default path set to last path
  35. bind '"' split-window -c "#{pane_current_path}"
  36. bind % split-window -h -c "#{pane_current_path}"
  37. bind c new-window -c "#{pane_current_path}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement