Skip to content

Instantly share code, notes, and snippets.

@GrayXu
Last active October 19, 2021 11:45
Show Gist options
  • Save GrayXu/851fa9b7db6733a2fb8ebc9569c26d35 to your computer and use it in GitHub Desktop.
Save GrayXu/851fa9b7db6733a2fb8ebc9569c26d35 to your computer and use it in GitHub Desktop.
personal tmux.conf
# file path: ~/.tmux.conf
# download: wget http://gist.githubusercontent.com/GrayXu/851fa9b7db6733a2fb8ebc9569c26d35/raw/.tmux.conf -O ~/.tmux.conf
# note: for tmux > 2.8
# Enable title for Terminal
set-option -g set-titles on
set-option -g set-titles-string "#S / #W"
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
#Enable oh my zsh in tmux
set -g default-command /bin/zsh
# set time info on the right side
set -g status-right "#[fg=colour106]#(~/bin/system_info.sh) #[fg=colour208]|%d %b %R"
# set windows at center
set -g status-justify centre
set -g pane-border-style fg=colour189,fg=black
# set terminal color
set -g default-terminal "screen-256color"
# set status fg bg color
set -g status-style bg=colour23,fg=colour238
# set fg and bg of labels of windows
setw -g window-status-style fg=colour232,fg=default,dim
setw -g window-status-current-style fg=colour88,bg=colour130,bright
# # Enable mouse mode (tmux 2.1 and above)
# set -g mouse on
# # for windows terminal title
# set-option -g set-titles on
# set-option -g set-titles-string "#S / #W"
# #Enable oh my zsh in tmux
# set -g default-command /bin/zsh
# # 设置状态栏右边内容,这里设置为时间信息
# set -g status-right "#[fg=colour106]#(~/bin/system_info.sh) #[fg=colour208]|%d %b %R"
# # 窗口信息居中显示
# set -g status-justify centre
# set -g pane-border-fg colour189
# set -g pane-border-bg black
# 设置终端类型为256色
# set -g default-terminal "screen-256color"
# # 设置状态栏前景及背景色
# set -g status-bg colour23
# set -g status-fg colour238
# # 设置窗口标签的前景及背景色
# setw -g window-status-fg colour232
# setw -g window-status-bg default
# setw -g window-status-attr dim
# # 设置当前窗口标签的前景及背景色
# setw -g window-status-current-fg colour88
# setw -g window-status-current-bg colour130
# setw -g window-status-current-attr bright
# Mouse based copy
#bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
#bind-key -T copy-mode MouseDragEnd1Pane send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment