SHARE
TWEET

Untitled

a guest Jun 23rd, 2016 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## Mouse options
  2. set -g mouse on
  3. bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"
  4. ## Start counting windows from 1
  5. set -g base-index 1
  6.  
  7.  
  8. setw -g mode-keys vi
  9.  
  10. # Vim style copy/paste
  11. bind-key -t vi-copy y copy-pipe "xsel -i -p -b"
  12. bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
  13. bind -n C-S-v run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
  14.  
  15. ## titles
  16. set-window-option -g automatic-rename on
  17. set-option -g set-titles on
  18.  
  19. ## Toggle copymode
  20. bind Escape copy-mode
  21.  
  22. ##open and close splits
  23. bind -n M-h split-window -h
  24. bind -n M-v split-window -v
  25. bind -n M-x killp
  26. bind -n M-z resize-pane -Z
  27. unbind '"'
  28. unbind %
  29.  
  30.  
  31. # Use Ctrl-arrows to navigate text
  32. set-window-option -g xterm-keys on
  33.  
  34. # Use Alt-arrow keys without prefix key to switch panes
  35. bind -n M-Left select-pane -L
  36. bind -n M-Right select-pane -R
  37. bind -n M-Up select-pane -U
  38. bind -n M-Down select-pane -D
  39.  
  40. # Shift arrow to switch windows
  41. bind -n S-down new-window
  42. bind -n S-left prev
  43. bind -n S-right next
  44. bind-key -n C-j detach
  45.  
  46. # No delay for escape key press
  47. set -sg escape-time 0
  48.  
  49. # Reload tmux config
  50. bind r source-file ~/.tmux.conf
  51.  
  52. unbind C-b
  53. set -g prefix C-a
  54.  
  55.  
  56. setw -g aggressive-resize on
  57. # ----------------------
  58.     # Status Bar
  59.     # -----------------------
  60.     set-option -g status on                # turn the status bar on
  61.     set -g status-utf8 on                  # set utf-8 for the status bar
  62.     set -g status-interval 15               # set update frequencey (default 15 seconds)
  63.     set -g status-justify centre           # center window list for clarity
  64.     set-option -g status-position top    # position the status bar at top of screen
  65.  
  66.     # visual notification of activity in other windows
  67.     setw -g monitor-activity on
  68.     set -g visual-activity on
  69.  
  70.     # set color for status bar
  71.     set-option -g status-bg colour235 #base02
  72.     set-option -g status-fg yellow #yellow
  73.     set-option -g status-attr dim
  74.  
  75.     # set window list colors - red for active and cyan for inactive
  76.     set-window-option -g window-status-fg brightblue #base0
  77.     set-window-option -g window-status-bg colour236
  78.     set-window-option -g window-status-attr dim
  79.  
  80.     set-window-option -g window-status-current-fg brightred #orange
  81.     set-window-option -g window-status-current-bg colour236
  82.     set-window-option -g window-status-current-attr bright
  83.  
  84.     # show host name
  85.     set -g status-left-length 70
  86.     set -g status-left "#[fg=green]: #h :"
  87.  
  88.     # show session name, window & pane number, date and time on right side of
  89.     # status bar
  90.     set -g status-right-length 60
  91.     set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d/%m/%Y #[fg=green]:: %H:%M"
  92. #set -g default-command "/usr/bin/zsh"
  93. set -g default-shell "/usr/bin/fish"
  94. set -g default-terminal screen-256color
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top