zl程序教程

您现在的位置是:首页 >  其它

当前栏目

[tmux] Customize tmux with tmux.conf

with conf tmux
2023-09-14 09:00:52 时间

You can modify tmux's behavior with your tmux configuration file, .tmux.conf. You can use your tmux config to change color schemes, set custom keybindings, set defaults, modify the status bar, and more. In this lesson, we'll change some of the default color options as well as modify the prefix key.

 

vim ~/.tmux.con

 

We are going to change C-b to C-a and some other settings:

# Rebind prefix key from C -b to C -a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix


# Pretty colors
set -g status-bg blue
set -g status-fg white

# East reloading
bind R source-file ~/.tmux.conf