Created
April 6, 2020 03:46
-
-
Save xuefeng-huang/24d7ec6b34ecc6fac34949362381aee6 to your computer and use it in GitHub Desktop.
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
# location ~/.tmux.conf | |
#change prefix from C-b to C-a | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
#set mouse off/on | |
set -g mouse on | |
#256 colours | |
set -g default-terminal "screen-256color" | |
# start with window 1 (instead of 0) | |
set -g base-index 1 | |
# start with pane 1 | |
set -g pane-base-index 1 | |
# use vi mode | |
setw -g mode-keys vi | |
set -g status-keys vi | |
# set inactive/active window styles | |
set -g window-style 'fg=colour247,bg=colour236' | |
set -g window-active-style 'fg=colour250,bg=black' | |
#pane border | |
set -g pane-border-style fg=colour238,bg=colour235 | |
set -g pane-active-border-style fg=colour51,bg=colour236 | |
#-------------------------------------------------------# | |
#Pane copy/pasting | |
#-------------------------------------------------------# | |
bind-key -Tcopy-mode-vi 'v' send -X begin-selection | |
bind-key -Tcopy-mode-vi 'y' send -X copy-selection | |
bind C-v paste-buffer | |
# Set background of status line to black | |
#-------------------------------------------------------# | |
set -g status-bg black | |
# Status line left side | |
#-------------------------------------------------------# | |
# Session: 0 1 1 settings | |
set -g status-left-length 40 | |
set -g status-left "#[fg=colour245]Session: #S #[fg=colour84]#I #[fg=colour75]#P" | |
#Window/pane type in centre | |
#-------------------------------------------------------# | |
#move bash* to centre | |
set -g status-justify centre | |
# set the color of the window list (name of the pane) | |
setw -g window-status-style fg=colour75,bg=default,dim | |
#Time and date on right-hand side | |
#-------------------------------------------------------# | |
# Status line right side | |
# e.g. 28 Nov 18:15 | |
set -g status-right "#[fg=colour245]%d %b #[fg=colour256] %R" | |
# Update the status bar every sixty seconds (for the time) | |
set -g status-interval 60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment