Last active
May 16, 2018 18:13
-
-
Save cabrinha/6f6589026f73742d41b9cf4bd5c08ef8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Must be on Tmux 2.1 or newer | |
## Must have a powerline compatible font enabled | |
# Unbind Ctrl-b for the prefix | |
# and use backtick key as prefix instead | |
unbind C-b | |
set -g prefix C-s | |
bind C-s send-prefix | |
bind-key L last-window | |
# Reload config | |
bind-key r source-file ~/.tmux.conf \; display-message "Config reloaded!" | |
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" | |
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" | |
# Repeat time | |
set-option -g repeat-time 10 | |
# Something about key bindings and vi | |
set-option -g status-keys vi | |
setw -g mode-keys vi | |
# copy / paste stuff | |
# Ubuntu clipboard | |
bind-key -t vi-copy 'v' begin-selection | |
bind -t vi-copy y copy-pipe "xclip -sel clip -i" | |
#bind-key -T copy-mode-vi 'v' send -X begin-selection | |
#bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" | |
#bind-key y run-shell "tmux save-buffer - | reattach-to-user-namespace pbcopy" | |
#set -g default-command 'reattach-to-user-namespace $SHELL --login' | |
# idk ... monitor | |
setw -g monitor-activity on | |
# Set color term | |
set -g default-terminal "screen-256color" | |
set-option -g default-shell "zsh" | |
# Start numbering windows at 1 | |
set -g base-index 1 | |
# Auto-window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
# Make mouse useful in copy mode | |
set-option -g -q mouse on | |
# Bind split vertical to | | |
bind | split-window -h | |
# Page up/down scroll | |
#bind-key -T root PPage if-shell -F "#{alternate_on}" "send-keys PPage" "copy-mode -e; send-keys PPage" | |
#bind-key -T copy-mode-vi PPage page-up | |
#bind-key -T copy-mode-vi NPage page-down | |
# Scrolling Mouse Wheel | |
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M" | |
bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M" | |
#bind-key vi-copy WheelUpPane halfpage-up | |
#bind-key vi-copy WheelDownPane halfpage-down | |
# Scroll history | |
set -g history-limit 100000 | |
# Set escape time | |
set -sg escape-time 0 | |
# Border panel colors | |
set -g pane-border-style fg=blue | |
set -g pane-active-border-style fg=blue | |
set -g pane-active-border-style bg=default | |
# fullscreen crap | |
setw -g aggressive-resize on | |
# # THEME | |
# This tmux statusbar config was created by tmuxline.vim | |
# on Sun, 16 Mar 2014 | |
set-option -g status-position top | |
# This tmux statusbar config was created by tmuxline.vim | |
# on Sun, 16 Mar 2014 | |
set -g status-bg 'colour234' | |
set -g message-command-fg 'colour231' | |
set -g status-justify 'left' | |
set -g status-left-length '100' | |
set -g status 'on' | |
set -g pane-active-border-fg 'colour254' | |
set -g message-bg 'colour31' | |
set -g status-right-length '100' | |
set -g status-right-attr 'none' | |
set -g message-fg 'colour231' | |
set -g message-command-bg 'colour31' | |
set -g status-attr 'none' | |
set -g pane-border-fg 'colour240' | |
set -g status-left-attr 'none' | |
setw -g window-status-fg 'colour250' | |
setw -g window-status-attr 'none' | |
setw -g window-status-activity-bg 'colour234' | |
setw -g window-status-activity-attr 'none' | |
setw -g window-status-activity-fg 'colour250' | |
setw -g window-status-separator '' | |
setw -g window-status-bg 'colour254' | |
set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,nobold,nounderscore,noitalics]' | |
set -g status-right '#[fg=colour236,bg=colour236,nobold,nounderscore,noitalics] #[fg=colour247,bg=colour236]%Y-%m-%d %H:%M #[fg=colour252,bg=colour236,nobold,nounderscore,noitalics]#[fg=colour235,bg=colour252] #(TZ=UTC date -u +%%H:%%M) ' | |
setw -g window-status-format '#[fg=colour244,bg=colour234] #I #[fg=colour250,bg=colour234] #W#[fg=colour0,bg=colour234,nobold,nounderscore,noitalics] ' | |
setw -g window-status-current-format '#[fg=colour234,bg=colour31,nobold,nounderscore,noitalics]#[fg=colour117,bg=colour31] #I #[fg=colour231,bg=colour31,bold] #W #[fg=colour31,bg=colour234,nobold,nounderscore,noitalics]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment