Guest User

Untitled

a guest
Mar 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. set -g default-shell $SHELL
  2. set -g default-command "reattach-to-user-namespace -l ${SHELL}"
  3.  
  4. # simplify our tmux prefix
  5. unbind C-b
  6. set -g prefix C-s
  7.  
  8. bind-key -r C-s send-prefix
  9.  
  10. # allow navigating panes with vim keybindings
  11. bind-key -n C-h select-pane -L
  12. bind-key -n C-j select-pane -D
  13. bind-key -n C-k select-pane -U
  14. bind-key -n C-l select-pane -R
  15.  
  16. # simplify reloading .tmux.conf
  17. bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
  18.  
  19. # set some tmux colors
  20. set -g default-terminal "screen-256color"
  21. set-option -g status-bg '#1c489b'
  22. set-option -g status-fg '#ffffff'
  23. set-option -g pane-border-style "fg=#1c489b"
  24. set-option -g pane-active-border-style "fg=#1c489b"
  25. set-option -g status-left '#[default] Windows: '
  26.  
  27. # copy/paste config
  28. set -g mouse on
  29. setw -g mode-keys vi
  30. bind-key -Tcopy-mode-vi 'v' send -X begin-selection
  31. bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
  32. unbind -Tcopy-mode-vi 'Enter'
  33. bind-key -Tcopy-mode-vi 'Enter' send -X copy-pipe "reattach-to-user-namespace pbcopy"
  34. bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
  35.  
  36. # open new panes in the current working directory
  37. bind-key c new-window -c "#{pane_current_path}"
  38. bind-key % split-window -h -c "#{pane_current_path}"
  39. bind-key '"' split-window -v -c "#{pane_current_path}"
Add Comment
Please, Sign In to add comment