Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. set -g prefix C-s
  2. set-option -g allow-rename off
  3. set -g base-index 1
  4. setw -g pane-base-index 1
  5. set -sg escape-time 0
  6. set-option -g default-terminal "screen-256color"
  7. set -g default-terminal "screen-256color"
  8. set -g history-limit 100000
  9. set -g set-titles on
  10. set -g set-titles-string "#S:#I:#P"
  11. setw -g mode-keys vi
  12. setw -g clock-mode-colour brightred
  13. setw -g clock-mode-style 24
  14. set -g message-fg white
  15. set -g message-bg black
  16. set -g message-attr bright
  17.  
  18. # window/pane movement/management
  19. bind C-h select-pane -L
  20. bind C-l select-pane -R
  21. bind C-k select-pane -U
  22. bind C-j select-pane -D
  23. bind -r C-h select-window -t :-
  24. bind -r C-l select-window -t :+
  25. bind H resize-pane -L 5
  26. bind L resize-pane -R 5
  27. bind K resize-pane -U 5
  28. bind J resize-pane -D 5
  29. bind | split-window -h -c "#{pane_current_path}"
  30. bind - split-window -v -c "#{pane_current_path}"
  31.  
  32. bind C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux display-message 'Buffer updated...'"
  33. bind m command-prompt -p "open manpage" "new-window 'exec man %%'"
  34. bind Escape copy-mode
  35. #bind-key -t copy-mode-vi 'v' begin-selection
  36. #bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
  37. #bind-key -T copy-mode-vi 'V' send-keys -X rectangle-toggle
  38. bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe "xclip -i -selection clipboard"
  39. bind-key -T copy-mode-vi 'Y' send-keys -X copy-end-of-line
  40. bind P paste-buffer
  41. bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
  42. bind + delete-buffer \; display-message "buffer deleted"
  43.  
  44. bind-key @ command-prompt -p "create pane from window:" "join-pane -s ':%%'"
  45. bind-key C-a last-window
  46. bind-key C-c new-window -c "#{pane_current_path}"
  47. bind-key C-r set-window-option synchronize-panes
  48. bind-key & confirm kill-session
  49. unbind C-b
  50. unbind C-b
  51. unbind [
  52. unbind p
  53. unbind *
  54. unbind %
  55. unbind '"'
  56.  
  57. # window status
  58. set -g status-justify centre
  59. set -g status-interval 5
  60. #set -g status-bg black
  61. set -g status-bg colour8
  62. set -g status-fg white
  63. set-option -g status-position top
  64. set -g status-right '%a %m-%d %H:%M'
  65. set-window-option -g window-status-current-bg brightred
  66. setw -g window-status-format " #F#I:#W#F "
  67. setw -g window-status-current-format " #F#I:#W#F "
  68. #setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W "
  69. setw -g window-status-format "#[fg=white]#[bg=black] #I #[bg=white]#[fg=colour8] #W "
  70. #setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W "
  71. setw -g window-status-current-format "#[bg=white]#[fg=brightred] #I #[fg=colour8]#[bg=white] #W "
  72. setw -g window-status-current-bg colour0
  73. setw -g window-status-current-fg colour1
  74. setw -g window-status-current-attr dim
  75. setw -g window-status-bg green
  76. setw -g window-status-fg black
  77. setw -g window-status-attr reverse
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement