Created
September 13, 2016 03:22
-
-
Save esganzerla/ff7d7e37aed45341e23ae80054282e74 to your computer and use it in GitHub Desktop.
My TMUX conf
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
### INSTALLATION NOTES ### | |
# 1. Install Homebrew (https://github.com/mxcl/homebrew) | |
# 2. brew install zsh | |
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh) | |
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace | |
# 5. Install iTerm2 | |
# 6. In iTerm2 preferences for your profile set: | |
# Character Encoding: Unicode (UTF-8) | |
# Report Terminal Type: xterm-256color | |
# 7. Put itunesartist and itunestrack into PATH | |
# | |
# | |
# Usage: | |
# - Prefix is set to Ctrl-a (make sure you remapped Caps Lock to Ctrl) | |
# - All prefixed with Ctrl-a | |
# - Last used window: / | |
# - Last used pane: ; | |
# - Vertical split: v | |
# - Horizontal split: s | |
# - Previous window: [ | |
# - Next window: ] | |
# - Choose session: Ctrl-s | |
# - Quick window: Ctrl-q | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
### LOOK & FEEL ### | |
set -g default-terminal "xterm-256color" | |
set-window-option -g utf8 on | |
set-option -g status-keys vi | |
set-option -g mode-keys vi | |
#no command delay | |
set -sg escape-time 0 | |
#count windows and panes from 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
### KEYS ### | |
#using C-a as prefix | |
unbind C-b | |
set-option -g prefix C-a | |
bind C-a send-prefix | |
unbind / | |
bind / last-window | |
unbind % | |
bind s split-window -v | |
unbind '"' | |
bind v split-window -h | |
bind C-h resize-pane -L 5 | |
bind C-j resize-pane -D 5 | |
bind C-k resize-pane -U 5 | |
bind C-l resize-pane -R 5 | |
bind C-u resize-pane -L 10 | |
bind C-i resize-pane -D 10 | |
bind C-p resize-pane -U 10 | |
bind C-o resize-pane -R 11 | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
unbind { | |
bind { swap-pane -D | |
unbind } | |
bind } swap-pane -U | |
unbind r | |
bind r source-file ~/.tmux.conf; display "Reloaded" | |
bind Escape copy-mode | |
bind p paste-buffer | |
unbind [ | |
bind [ previous-window | |
unbind ] | |
bind ] next-window | |
unbind o | |
bind o select-pane -t :.- | |
bind C-q command-prompt -I "htop" -p "Quick window command: " "new-window '%%'" | |
bind -t vi-copy 'v' begin-selection | |
bind -t vi-copy 'y' copy-selection | |
bind C-c run "tmux save-buffer - | pbcopy" | |
bind C-v run "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer" | |
bind C-s choose-session '"' | |
# status line | |
set -g status-justify left | |
set -g status-bg black | |
if '[ -z "$DISPLAY" ]' 'set -g status-bg default' | |
set -g status-fg white | |
set -g status-interval 4 | |
# messaging | |
set -g message-fg black | |
set -g message-bg yellow | |
set -g message-command-fg blue | |
set -g message-command-bg black | |
#window mode | |
setw -g mode-bg colour6 | |
setw -g mode-fg colour0 | |
# window status | |
setw -g window-status-format " #F#I:#W " | |
setw -g window-status-current-format " #F#I:#W " | |
setw -g window-status-format "#[fg=brightblue]#[bg=black] #I #W " | |
setw -g window-status-current-format "#[fg=colour8,bold]#[bg=black] #I #W " | |
setw -g window-status-current-bg black | |
setw -g window-status-current-fg yellow | |
setw -g window-status-current-attr bold | |
setw -g window-status-bg black | |
setw -g window-status-fg blue | |
setw -g window-status-attr default | |
# Info on right | |
#set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg) #[fg=colour8]// #[fg=cyan]Tmux [#S]' | |
set -g status-right "#[fg=cyan]%A %d-%m-%Y %H:%M" | |
#set -g status-right-length 35 | |
set -g status-right-length 60 | |
# Info on left (no session display) | |
set -g status-left '#[fg=yellow]#S ' | |
# loud or quiet? | |
set-option -g visual-activity on | |
set-option -g visual-bell off | |
set-option -g visual-silence off | |
set-window-option -g monitor-activity off | |
set-option -g bell-action none | |
#set-option -g bell-on-alert on | |
# tmux clock | |
set -g clock-mode-colour blue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment