tmux不自動加載配置文件.tmux.conf

/**********************************************************************
 *                 tmux不自動加載配置文件.tmux.conf
 * 說明:
 *     使用SSH鏈接服務器,只有一個窗口,使用起來比較麻煩,因而使用tmux來分屏,
 * 結果寫了tmux的配置,一直無效,原來是須要手動加載,尤爲是第一次要手動加載一次,
 * 在裏面再加入自動加載的快捷鍵,這樣就能夠了。
 *
 *                                2018-6-19 深圳 寶安西鄉 曾劍鋒
 *********************************************************************/

1、參考文檔:
    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
2、解決方法: 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.." 3、配置示例: 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
相關文章
相關標籤/搜索