Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # start a non-login shell by default for each new window
- set -g default-command 'zsh'
- # set default terminal
- set -g default-terminal "screen-256color"
- # make sure that DISPLAY does not get set by tmux
- set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
- # vi keybindings
- setw -g mode-keys vi
- set -g status-keys vi
- # enable utf-8
- setw -g utf8 on
- # reload statusbar every 5 seconds
- set -g status-interval 5
- # statusbar has white on black/transparent background
- set -g status-bg default
- set -g status-fg white
- # black text on gray background when in copy mode. same colors for message bar.
- setw -g mode-bg colour39
- setw -g mode-fg black
- set -g message-bg colour39
- set -g message-fg black
- # don't limit status-left to the 10-char default
- set -g status-left-length 100
- # hostname in bright red, 24-hr time in blue, date in green
- set -g status-left '#[fg=red,bright]#H #[fg=colour33]%k:%M #[fg=green,bright]%d-%b'
- # session name in bright red, load avg in bright green
- set -g status-right '#[fg=red,bright]#S#[fg=colour244] | #[fg=green,bright]#(cut -d " " -f 1-4 /proc/loadavg)'
- # active pane's border in blue, other pane borders in white
- #set -g pane-active-border-fg brightblue
- set -g pane-active-border-fg colour33
- set -g pane-border-fg white
- # set scrollback to 5000 lines
- set -g history-limit 5000
- # window name format
- setw -g window-status-format '#I.#P)#W#F'
- # selected window name format
- setw -g window-status-current-format '#[fg=blue,bright]#I.#P)#W#F'
- # color for windows with flags (activity, etc)
- setw -g window-status-bell-attr default
- setw -g window-status-content-attr default
- setw -g window-status-activity-attr default
- setw -g window-status-bell-fg red
- setw -g window-status-content-fg red
- setw -g window-status-activity-fg red
- setw -g window-status-bell-bg default
- setw -g window-status-content-bg default
- setw -g window-status-activity-bg default
- # start window/pane numbering at 1 instead of 0
- set -g base-index 1
- set -g pane-base-index 1
- # since index 0 isn't used, bind 0 to window 10
- bind 0 selectw -t :10
- # change command key from C-b
- set -g prefix `
- set -g prefix2 C-o
- # send prefix to remote tmux instance
- #bind i send-prefix
- bind ` send-prefix
- # toggle automatic rename
- bind a setw automatic-rename
- # window creation/navigation/etc.
- bind c new-window
- bind C-c new-window
- bind o last-window
- bind C-o last-window
- bind Tab last-window
- bind p previous-window
- bind C-p previous-window
- bind n next-window
- bind C-n next-window
- bind C-d detach
- # don't switch layouts with Space/Ctrl-Space
- unbind C-Space
- unbind Space
- # swap windows (companion to the "." default keybinding)
- bind > command-prompt "swap-window -t '%%'"
- # toggle activity monitoring in current window
- bind M setw monitor-activity
- # toggle pane synchronization
- bind S setw synchronize-panes
- # kill current pane (and unbind default keybinding for this action)
- bind k confirm-before kill-pane
- unbind x
- # list sessions
- bind l list-sessions
- # change keybindings for window splitting so they make sense
- bind | split-window -h
- #bind - split-window
- bind _ split-window
- # make "C-Space" work for next-layout as well as "Space"
- bind C-Space next-layout
- # copy buffer to clipboard
- bind C-y saveb /tmp/tmux-buffer \; run-shell "cat /tmp/tmux-buffer | xsel -ib; rm /tmp/tmux-buffer"
- bind y saveb /tmp/tmux-buffer \; run-shell "cat /tmp/tmux-buffer | xsel -ib; rm /tmp/tmux-buffer"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement