Created
October 26, 2017 23:29
-
-
Save diffficult/8596e2c2a16a63610623db201af83e67 to your computer and use it in GitHub Desktop.
2017-10 working tmux config
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
#Prefix Key | |
set -g prefix ^a | |
set -g status-keys vi | |
setw -g mode-keys vi | |
# setw -g mode-mouse on | |
unbind c | |
unbind i | |
unbind l | |
unbind s | |
unbind w | |
# Reload Config File | |
bind F12 source-file ~/.tmux.conf | |
# New Window | |
bind n neww | |
# Choose Window | |
bind m choose-window | |
# Choose Session | |
bind a choose-session | |
# Close Pane | |
bind c kill-pane | |
# Toggle Statusbar | |
bind t set status | |
# Select Windows Ctrl-[1-0] | |
bind -n ^F1 select-window -t 1 | |
bind -n ^F2 select-window -t 2 | |
bind -n ^F3 select-window -t 3 | |
bind -n ^F4 select-window -t 4 | |
bind -n ^F5 select-window -t 5 | |
bind -n ^F6 select-window -t 6 | |
bind -n ^F7 select-window -t 7 | |
bind -n ^F8 select-window -t 8 | |
bind -n ^F9 select-window -t 9 | |
bind -n ^F10 select-window -t 10 | |
bind -n ^F11 select-window -t 11 | |
#bind -n ^F12 select-window -t 12 | |
bind ^h select-pane -L | |
bind ^j select-pane -D | |
bind ^k select-pane -U | |
bind ^l select-pane -R | |
bind h resize-pane -L | |
bind j resize-pane -D | |
bind k resize-pane -U | |
bind l resize-pane -R | |
bind F1 select-pane -t 1 | |
bind F2 select-pane -t 2 | |
bind F3 select-pane -t 3 | |
bind F4 select-pane -t 4 | |
bind F5 select-pane -t 5 | |
bind F6 select-pane -t 6 | |
bind F7 select-pane -t 7 | |
bind F8 select-pane -t 8 | |
bind F9 select-pane -t 9 | |
bind F10 select-pane -t 10 | |
bind F11 select-pane -t 11 | |
#bind F12 select-pane -t 12 | |
bind i split-window -h | |
bind s split-window | |
# History | |
set-option -g history-limit 10000 | |
# Terminal emulator window title | |
setw -g automatic-rename on | |
set-option -g set-titles on | |
set-option -g set-titles-string 'tmux: #T #W' | |
# don't rename windows automatically | |
set-option -g allow-rename off | |
# Status bar | |
set-option -g status-justify centre | |
set-option -g status-bg "black" | |
set-option -g status-fg white | |
set-option -g status-interval 5 | |
#setw -g window-status-format "#T(#I:#W#F)" | |
#setw -g window-status-current-format "#T(#I:#W#F)" | |
setw -g window-status-format "#[fg=black, bg=blue]#[fg=#b4b4b4, bg=blue] #I #[fg=blue,bg=black] #[fg=#b4b4b4]#W" | |
setw -g window-status-current-format "#[fg=black, bg=red]#[fg=#d5d5d5, bg=red] #T #[fg=red,bg=black] #[fg=#b4b4b4]#W" | |
#setw -g window-status-format "#[fg=black, bg=blue]#[fg=#b4b4b4, bg=blue] #I:#[pwd="#{pane_current_path}"; echo ${pwd####*/}] #[fg=blue,bg=black] #[fg=#b4b4b4]#W" | |
#setw -g window-status-current-format "#[fg=black, bg=red]#[fg=#d5d5d5, bg=red] #T:#[pwd="#{pane_current_path}"; echo ${pwd####*/}] #[fg=red,bg=black] #[fg=#b4b4b4]#W" | |
#set -g window-status-format '#I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})#F' | |
#set -g window-status-current-format '#I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})#F' | |
set -g status-justify left | |
# set-option -g status-left '#[fg=blue,bg=black] ♥ ' | |
# set-option -g status-right '#[fg=red,bg=black] ♥ ' | |
set-option -g status-left '#[fg=blue,bg=black] ◣ ' | |
set-option -g status-right '#[fg=red,bg=black] ◥ ' | |
#set -g status-utf8 on | |
set -g pane-border-fg black | |
set -g pane-active-border-fg black | |
# Notifications | |
set-option -g visual-activity off | |
set-window-option -g monitor-activity off | |
# Clock | |
set-window-option -g clock-mode-colour green | |
set-window-option -g clock-mode-style 24 | |
# Terminal and shell options | |
set -g default-terminal "screen-256color" | |
set -g default-shell /bin/zsh | |
set -g default-command /bin/zsh | |
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right | |
#set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC" | |
# Mouse options | |
#set-window-option -g mode-mouse on | |
# set -g mouse-select-pane on | |
# Message | |
set -g message-bg brightblack | |
set -g message-fg white | |
#testing options | |
set-option -g base-index 1 | |
setw -g pane-base-index 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment