-
-
Save hungtienvu/8a74d8c195e22b6a66748df4414f0af5 to your computer and use it in GitHub Desktop.
My tmux configuration
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
# Settings courtesy internet | |
# Bind C-a (Ctrl+a) to default action on tmux | |
set-option -g prefix C-a | |
unbind C-b | |
# Command sequence for nested tmux when running tmux inside another tmux, you | |
# need to send command to inner tmux | |
bind-key a send-prefix | |
# C-a C-a for last active window | |
bind-key C-a last-window | |
# set vi type keys | |
setw -g mode-keys vi | |
# Set the repeat-time to 1 second so that multiple commands can be entered | |
# without sending the prefix-key within 1 second. Commands are made repeatable | |
# by -r option of bind-key. By default it is 500 ms. | |
set -g repeat-time 1000 | |
# Selecting next pane using "Tab" | |
# -r is to enable repeat of command without need for pressing prefix again | |
# Tab is repeatable, within repeat-time (ms) delay... | |
bind-key -r Tab select-pane -t :.+ | |
# Use vim keys for splitting | |
bind s split-window -v | |
bind v split-window -h | |
# Use vim type keys for navigating between windows | |
bind h select-pane -L | |
bind l select-pane -R | |
bind k select-pane -U | |
bind j select-pane -D | |
# Use vim type keys for re-sizing panes | |
bind -r < resize-pane -L 1 | |
bind -r > resize-pane -R 1 | |
bind -r - resize-pane -D 1 | |
bind -r + resize-pane -U 1 | |
# 256 colors | |
# This causes some problem on some systems... | |
# set -g default-terminal "screen-256color" | |
# starting window numbering at 1 | |
set -g base-index 1 | |
# Setting pane base index to 1. | |
setw -g pane-base-index 1 | |
# Faster command sequence, no delay is sending command | |
set -sg escape-time 0 | |
# Aggressive resize | |
setw -g aggressive-resize on | |
# Monitor window activity | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Automatic rename | |
setw -g automatic-rename on | |
# Binding r to reload this config file | |
bind r source-file ~/.tmux.conf \; display "Reloading config..." | |
# Switch on UTF-8 support for status bar | |
set -g status-utf8 on | |
# Refresh status-bar every minute or so | |
# get the status, by default 15 seconds. | |
# set -g status-interval 60 | |
# Set day, date and time on right | |
# Format as per strftime. See man strftime | |
set -g status-right "%A %d-%B %R" | |
# Solarized colors below | |
#### COLOUR | |
# default statusbar colors | |
#set-option -g status-bg colour235 #base02 | |
#set-option -g status-fg colour136 #yellow | |
set-option -g status-bg green | |
set-option -g status-fg black #base02 | |
set-option -g status-attr default | |
# default window title colors | |
#set-window-option -g window-status-fg colour244 | |
#set-window-option -g window-status-bg default | |
set-window-option -g window-status-fg black | |
set-window-option -g window-status-bg default | |
set-window-option -g window-status-attr dim | |
#set-window-option -g window-status-attr bright | |
# active window title colors | |
set-window-option -g window-status-current-fg black | |
set-window-option -g window-status-current-bg default | |
set-window-option -g window-status-current-attr bright | |
# pane border | |
set-option -g pane-border-fg colour235 #base02 | |
#set-option -g pane-border-fg | |
#set-option -g pane-active-border-fg colour240 #base01 | |
#set-option -g pane-active-border-fg colour249 | |
set-option -g pane-active-border-fg green | |
# message text | |
set-option -g message-bg colour235 #base02 | |
set-option -g message-fg colour166 #orange | |
# pane number display | |
set-option -g display-panes-active-colour colour33 #blue | |
set-option -g display-panes-colour colour166 #orange | |
# clock | |
set-window-option -g clock-mode-colour colour64 #green |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment