[]tmux常用配置

14 篇文章 0 订阅
保存一份tmux常用配置:
# set -g mode-mouse on
# 设置滚屏
# set-window-option -g mode-mouse on

# 如果喜欢给窗口自定义命名,那么需要关闭窗口的自动命名
set-option -g allow-rename off
# 如果对 vim 比较熟悉,可以将 copy mode 的快捷键换成 vi 模式
set-window-option -g mode-keys vi
# 系统剪切板共享
#set-option -g default-command "reattach-to-user-namespace -l zsh"

# 用鼠标切换窗口、调节分屏大小
# setw -g mouse-resize-pane on
# set-window-option -g mouse-select-pane on
# setw -g mode-mouse on
# setw -g mouse-select-window on
## 设置复制模式
 setw -g mode-keys vi
# bind ` copy-mode
# unbind [
# unbind p
# bind p paste-buffer
# bind -t vi-copy v begin-selection
# bind -t vi-copy y copy-selection
bind -t vi-copy Escape cancel
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"

# 下面是自己的一些配置,可删可不删
bind r source-file ~/.tmux.conf \; display "配置文件已成功加载完毕!"
bind | split-window -h
bind - split-window -v
# set -g default-ternimal "screen-256color"
set -g status-fg white
set -g status-bg black
setw -g window-status-fg magenta
setw -g window-status-bg default
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
set -g pane-border-fg green
set -g pane-border-bg yellow
set -g pane-active-border-fg white
set -g pane-active-border-bg cyan
set -g message-fg white
set -g message-bg black
set -g message-attr bright

set -g status-left-length 36
set -g status-left "#[fg-White] Session: #S #[fg=cyan]#P"

set -g status-interval 60
set -g status-justify centre
setw -g monitor-activity on
set -g visual-activity on


#zzk
#bind -t vi-copy v begin-selection 
#bind -t vi-copy y copy-pipe 'xclip -selection clipboard >/dev/null'

#bind -t vi-copy v begin-selection
#bind -t vi-copy y copy-selection
# bind -t vi-copy Escape cancel
# bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
#
#

setw -g mouse-resize-pane on
setw -g mouse-select-pane on
setw -g mouse-select-window on
setw -g mode-mouse on

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值