Created
March 1, 2018 07:12
-
-
Save elnx/8caca574ea3dffae8a00cf12e2cebc0a to your computer and use it in GitHub Desktop.
This file contains 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
# Use UTF8 | |
#set -g utf8 | |
#set -g status-utf8 on | |
#setw -g utf8 on | |
# Use zsh as default shell | |
set-option -g default-shell /bin/zsh | |
# Support for 256 colors | |
set -g default-terminal "screen-256color" | |
# for putty | |
set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@" | |
# Increase history limit | |
set -g history-limit 200000 | |
# Automatically renumber window numbers on closing a pane (tmux >= 1.7) | |
set -g renumber-windows on | |
# Start window numbering at 1, (0 is too hard to reach) | |
set -g base-index 1 | |
# Don't wait for an escape sequence | |
set -s escape-time 1 | |
# Use vim keybindings in copy mode | |
setw -g mode-keys vi | |
bind -t vi-copy v begin-selection | |
bind -t vi-copy y copy-selection | |
bind -t vi-copy K page-up | |
bind -t vi-copy J page-down | |
# Ctrl-^b to toggle (normally prefix-l) | |
bind ^b last-window | |
# Ctrl + left/right cycles thru windows | |
bind -n C-right next | |
bind -n C-left prev | |
bind -n C-_ kill-pane | |
#bind -n C-Space next | |
# Ctrl-b b to send ^b | |
bind b send-prefix | |
# Ctrl-b + hjkl to switch pane | |
unbind l | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Ctrl-b + arrow keys to resize | |
unbind Left | |
unbind Right | |
unbind Down | |
unbind Up | |
bind -r Left resize-pane -L 5 | |
bind -r Right resize-pane -R 5 | |
bind -r Down resize-pane -D 5 | |
bind -r Up resize-pane -U 5 | |
# Ctrl-r to reload config | |
bind r source-file ${HOME}/.tmux.conf \; display-message "source-file reloaded" | |
# Create window under current path | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" | |
bind c new-window -c "#{pane_current_path}" | |
# Theme | |
set -g status-fg colour231 | |
set -g status-bg colour234 | |
set -g status-left-length 40 | |
set -g status-left '#[fg=colour16,bg=colour254,bold] TMUX ⧉ #S ' | |
set -g status-right-length 150 | |
set -g status-right "%Y/%m/%d %H:%M #[fg=colour16,bg=colour252,bold,noitalics,nounderscore] #(whoami)@#h" | |
#set -g status-right " %Y/%m/%d #[fg=colour16,bg=colour252,bold,noitalics,nounderscore] #(whoami)@#h " | |
set -g window-status-format "#[fg=colour254,bg=colour239] #I | #W " | |
set -g window-status-current-format "#[fg=colour117,bg=colour31] #I | #[fg=colour231,bold]#W " | |
set -g window-status-activity-attr bold | |
set -g pane-border-fg colour238 | |
set -g pane-active-border-fg colour31 | |
set -g message-fg colour231 | |
set -g message-bg colour31 | |
#if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.conf' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment