博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
tmux不自动加载配置文件.tmux.conf
阅读量:7112 次
发布时间:2019-06-28

本文共 1435 字,大约阅读时间需要 4 分钟。

/********************************************************************** *                 tmux不自动加载配置文件.tmux.conf * 说明: *     使用SSH连接服务器,只有一个窗口,使用起来比较麻烦,于是使用tmux来分屏, * 结果写了tmux的配置,一直无效,原来是需要手动加载,尤其是第一次要手动加载一次, * 在里面再加入自动加载的快捷键,这样就可以了。 * *                                2018-6-19 深圳 宝安西乡 曾剑锋 *********************************************************************/一、参考文档:    1. tmux : config files are not used        https://stackoverflow.com/questions/30558755/tmux-config-files-are-not-used     2. 自动安装Tmux,使用配置脚本         https://github.com/ZengjfOS/Tmux 二、解决方法:    1. After you make changes to ~/.tmux.conf make sure tmux sources them with the tmux source-file ~/.tmux.conf shell command.    2. bind R source-file ~/.tmux.conf ; display-message "Config reloaded.."三、配置示例:    bind R source-file ~/.tmux.conf ; display-message "Config reloaded.."        # set -g prefix C-a    # unbind C-b    # bind C-a send-prefix        # Remap window(pane?) navigation to vim    # 用 vim 的方式在窗格间移动光标    unbind-key j    bind-key j select-pane -D    unbind-key k    bind-key k select-pane -U    unbind-key h    bind-key h select-pane -L    unbind-key l    bind-key l select-pane -R        # 开启鼠标模式    set-option -g mouse on        # 允许鼠标选择窗格    set -g mouse-select-pane on        # Split tmux.conf into multiple files    # source-file ~/.tmux/mylayout        # 默认分屏    selectp -t 0    splitw -h -p 40    selectp -t 1    splitw -v -p 40    selectp -t 0

 

转载地址:http://woghl.baihongyu.com/

你可能感兴趣的文章
聊聊微服务的服务注册与发现
查看>>
apache配置
查看>>
入门笔记上面的3n+1问题的思考
查看>>
阿里云 Aliplayer高级功能介绍(九):自动播放体验
查看>>
我的友情链接
查看>>
2012-12-22
查看>>
我的友情链接
查看>>
Scala自己打的jar包不能够读取自己jar包里面的如Properties这样的文件
查看>>
找出apache日志中访问量最大的IP
查看>>
欢迎访问独立私人日志
查看>>
python调用dll
查看>>
数据事物嵌套实验和结论
查看>>
linux LVS
查看>>
LAMP平台部署及应用(二) -- 构建Discuz!论坛服务器
查看>>
反向代理负载均衡模块详述
查看>>
Shell脚本--监控mysql的队列,队列超过300告警
查看>>
HttpClient4.x send request over SSL
查看>>
天益SSL /IPSEC ×××网关设备
查看>>
Ubuntu Server 18.04 通过 nvm 安装 node
查看>>
NSArray数组
查看>>