Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
179 lines (149 sloc) 6.93 KB
set-option -ga terminal-overrides ",xterm-256color:Tc"
# set -g default-terminal "xterm-256color"
set -g default-terminal "screen-256color"
set -g mouse on
# # set -g status-bg colour147
# set -g status-bg default
set-option -g status-left ' ⣿ '
set-window-option -g xterm-keys on
# switch panes using Alt-arrow without prefix
bind -n S-Left previous-window
bind -n S-Right next-window
# set -g window-status-current-bg colour147
set -g window-status-current-fg colour241
# set-option -g default-shell /usr/local/bin/zsh
# set-option -g default-command /usr/local/bin/zsh
# panes
set -g pane-border-fg white
set -g pane-active-border-fg black
# status line
set -g status-justify left
# set -g status-fg black
set -g status-interval 2
# messaging
# set -g message-fg black
# set -g message-bg blue
# set -g message-command-fg blue
# set -g message-command-bg black
# window mode
# setw -g mode-bg blue
# setw -g mode-fg black
# resizing
# setw -g aggressive-resize on
# # window status
# set-option -g status-position top
# # setw -g window-status-format "#[bg=colour241]#[fg=black]█▓░ #W "
setw -g window-status-attr dim
# # setw -g window-status-current-format "#[bg=colour66]#[fg=black]█▓░ #W "
# setw -g window-status-content-attr blink
setw -g window-status-current-attr dim
# Info on right
# set -g status-right-length 100
# set -g status-right ''
# set -g status-right '#(~/code/sys/status)'
# Info on left (no session display)
# set -g status-left ''
# tmux config
# set -g prefix M-a
# unbind C-b
# unbind r
# bind M-a send-prefix
set-option -g base-index 1
set-option -g pane-base-index 1
# set-option -g xterm-keys on
# set-option -g status-right ''
# set-option -g status-left-length 120
# set-option -g status-left-style bg=black
# set-option -g status-style bg=black
# set-option escape-time 0
setw -g mode-keys vi
# setw -g mode-keys emacs
set-option -g status-keys emacs
set-option -g set-titles on
# setw -g window-status-style fg=white,bg=default
# setw -g window-status-current-style fg=black,bg=white
# bind r source-file ~/.tmux.conf
# bind Escape detach-client -Pa
# bind P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer'
# bind -n 'M-l' select-window -t +1
# bind -n 'M-h' select-window -t -1
# bind -n 'M-H' swap-window -t -1
# bind -n 'M-L' swap-window -t +1
# bind -n 'M-j' select-pane -D
# bind -n 'M-k' select-pane -U
# bind -n 'M-J' resize-pane -D 2
# bind -n 'M-K' resize-pane -U 2
# bind -n 'M-s' split-window -h -c "#{pane_current_path}"
# bind -n 'M-v' split-window -v -c "#{pane_current_path}"
# bind -n 'M-n' new-window -c "#{pane_current_path}"
# bind -n 'M-N' new-session \; refresh -S
# bind -n 'M-V' paste-buffer -r
# bind -n 'M-c' copy-mode
# bind -n 'M--' copy-mode \; send-keys C-u
# bind -n 'M-=' copy-mode \; send-keys C-d
# bind -n 'M-/' copy-mode \; send-keys /
# bind -n M-\; command-prompt
# bind -n 'M-\' resize-pane -Z # M-Enter
# bind -n 'M-V' paste-buffer -r
# bind -n 'M-0' select-pane -P 'bg=default'
# bind -n 'M-1' select-pane -P 'bg=#550055'
# bind -n 'M-2' select-pane -P 'bg=#003366'
# bind -n 'M-3' select-pane -P 'bg=#662200'
# bind -n 'M-4' select-pane -P 'bg=#555555'
# ############################################
# Added by session finder's install script.
# source-file /Users/z/.tmux/session-finder/session-finder.conf
# Finder:
# bind-key -n M-Tab split-window -l 10 '/Users/z/.tmux/lash/f.sh tmux'
# set-option -g window-status-format ''
# set-option -g window-status-current-format ''
# bind-key -n C-d detach
set -sg escape-time 0
bind -n C-f run-shell "tmux list-windows -F \"##I:##W\" | fzf-tmux | cut -d \":\" -f 1 | xargs tmux select-window -t"
# set -g status-bg 'colour235'
# set -g message-command-fg 'colour222'
# set -g status-justify 'centre'
# set -g status-left-length '100'
# set -g status 'on'
# set -g pane-active-border-fg 'colour154'
# set -g message-bg 'colour238'
# set -g status-right-length '100'
# set -g status-right-attr 'none'
# set -g message-fg 'colour222'
# set -g message-command-bg 'colour238'
# set -g status-attr 'none'
# set -g status-utf8 'on'
# set -g pane-border-fg 'colour238'
# set -g status-left-attr 'none'
# setw -g window-status-fg 'colour121'
# setw -g window-status-attr 'none'
# setw -g window-status-activity-bg 'colour235'
# setw -g window-status-activity-attr 'none'
# setw -g window-status-activity-fg 'colour154'
# setw -g window-status-separator ''
# setw -g window-status-bg 'colour235'
# set -g status-left '#[fg=colour232,bg=colour154] #S #[fg=colour154,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #W #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour121,bg=colour235] #(whoami)  #(uptime | cut -d " " -f 1,2,3) #[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]'
# set -g status-right '#[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour121,bg=colour235] %r  %a  %Y #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #H #[fg=colour154,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour232,bg=colour154] #(rainbarf --battery --remaining --no-rgb) '
# setw -g window-status-format '#[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]#[default] #I  #W #[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]'
# setw -g window-status-current-format '#[fg=colour235,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #I  #W  #F #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]'
# statusbar settings - adopted from tmuxline.vim and vim-airline - Theme: murmur
# set -g status-justify "left"
# set -g status "on"
# set -g status-left-style "none"
set -g message-command-style "fg=colour144,bg=colour237"
# set -g status-right-style "none"
set -g pane-active-border-style "fg=colour27"
set -g status-style "bg=colour234,none"
set -g message-style "fg=colour144,bg=colour237"
set -g pane-border-style "fg=colour237"
# set -g status-right-length "100"
# set -g status-left-length "100"
# setw -g window-status-activity-attr "none"
set -g window-status-current-fg colour39
setw -g window-status-activity-style "fg=colour27,bg=colour234,none"
setw -g window-status-separator ' ⣿ '
setw -g window-status-style "fg=colour244,bg=colour234,none"
# set -g status-left "#[fg=colour15,bg=colour27] #S #[fg=colour27,bg=colour234,nobold,nounderscore,noitalics]"
# set -g status-right "#[fg=colour237,bg=colour234,nobold,nounderscore,noitalics]#[fg=colour144,bg=colour237] %d.%m.%Y  %H:%M #[fg=colour27,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour15,bg=colour27] #h "
# setw -g window-status-format "#[fg=colour39,bg=colour234] #I #[fg=colour39,bg=colour234] #W "
# setw -g window-status-current-format "#[fg=colour234,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour144,bg=colour237] #I #[fg=colour144,bg=colour237] #{pane_current_path} #[fg=colour144,bg=colour237] #W #[fg=colour237,bg=colour234,nobold,nounderscore,noitalics]"