Last active
October 24, 2019 22:45
-
-
Save xmkevinchen/8e281008235493bcc80ac52eb99dd317 to your computer and use it in GitHub Desktop.
Personal customized tmux configuration
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
# Customize configuration | |
set -g mouse on | |
# Use VIM navigation style | |
set -g mode-keys vi | |
# Status update interval | |
set -g status-interval 1 | |
# Enable 24bit true color | |
set -g default-terminal "xterm-256color" | |
set-option -ga terminal-overrides ",xterm-256color:Tc" | |
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# Start window numbering at 1 | |
set -g base-index 1 | |
# Start pane number at 1 | |
setw -g pane-base-index 1 | |
set -g display-panes-time 2000 | |
# Remap split shortcut | |
bind | split-window -h | |
bind - split-window -v | |
# reload config file | |
bind R source-file ~/.tmux.conf \; display-message " Config reloaded..". | |
# Load theme configuration | |
source-file ~/.tmux.theme.conf | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'nhdaly/tmux-better-mouse-mode' | |
set -g @plugin 'tmux-plugins/tmux-prefix-highlight' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run -b '~/.tmux/plugins/tpm/tpm' | |
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
### Customize status bar | |
# Prefix highlight | |
set -g @prefix_highlight_fg white | |
set -g @prefix_highlight_bg colour233 | |
set -g @prefix_highlight_prefix_prompt 'Wait' | |
set -g @prefix_highlight_copy_prompt 'Copy' | |
# Basic status bar colors | |
set -g status-style fg=colour240,bg=colour233 | |
# Left side of status bar | |
set -g status-left-style fg=colour243,bg=colour233 | |
set -g status-left-length 40 | |
set -g status-left "#[fg=colour233,bg=colour24,bold] #S #[fg=colour24,bg=colour240,nobold]#[fg=colour233,bg=colour240] #(whoami) #[fg=colour240,bg=colour235]#[fg=colour240,bg=colour235] #I:#P #[fg=colour235,bg=colour233,nobold]" | |
# Right side of status bar | |
set -g status-right-style fg=colour243,bg=colour233 | |
set -g status-right-length 150 | |
set -g status-right "#[fg=colour233,bg=colour233]#{prefix_highlight} #[fg=colour235,bg=colour233]#[fg=colour38,bg=colour235 bold] %H:%M:%S #[fg=colour240,bg=colour235]#[fg=colour233,bg=colour240] %d-%b-%y #[fg=colour24,bg=colour240]#[fg=colour250,bg=colour24,bold] #(hostname | cut -d . -f 1) " | |
# Window status | |
set -g window-status-format " #I:#W#F " | |
set -g window-status-current-format "#[fg=colour233,bg=black]#[fg=colour38,bold] #I:#W#F #[fg=colour233,bg=black,nobold]" | |
# Current window status | |
set -g window-status-current-style fg=colour235,bg=colour24 | |
# Window with activity status | |
# set -g window-status-activity-bg colour245 # fg and bg are flipped here due to | |
# set -g window-status-activity-fg colour233 # a bug in tmux | |
# Window separator | |
set -g window-status-separator "" | |
# Window status alignment | |
set -g status-justify left | |
# Pane border | |
set -g pane-border-style fg=colour24,bg=default | |
# Active pane border | |
set -g pane-active-border-style fg=colour24,bg=default | |
# Pane number indicator | |
# set -g display-panes-colour colour233 | |
set -g display-panes-active-colour colour24 | |
# Clock mode | |
set -g clock-mode-colour colour24 | |
set -g clock-mode-style 24 | |
# Message | |
set -g message-style fg=white,bg=colour24 | |
# Command message | |
set -g message-command-style fg=white,bg=colour233 | |
# Mode | |
set -g mode-style fg=white,bg=colour24 |
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Upgrade to tmux 2.9.x style syntax
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's the link of TPM