2015-10-06 118 views
0

我想簡單地改變從C-b我TMUX設置前綴鍵,C-\.tmux.conf不能在Mac上讀取,而是在Linux上讀取?

在我的兩個Linux和Mac OS X計算機我有一個文件名爲.tmux.conf文件中~/

所有的設置在文件中應用於我的Linux系統,但是他們都沒有應用在我的Mac上,我想知道如果有人知道爲什麼這可能是?

這是我.tmux.conf

# Set colors 
set-option -g default-terminal "screen-256color" 

# Set reload key to r 
# bind r source-file ~/.tmux.conf 

# Change prefix 
unbind-key C-b 
set -g prefix 'C-\' 
bind-key 'C-\' send-prefix 

# Count sessions start at 1 
set -g base-index 1 

# Set the title bar 
set -g set-titles on 
set -g set-titles-string '#(whoami) :: #h :: #(curl ipecho.net/plain;echo)' 

# Set status bar 
set -g status-utf8 on 
set -g status-bg black 
set -g status-fg white 
set -g status-interval 5 
set -g status-left-length 90 
set -g status-right-length 60 
set -g status-left "#[fg=Green]#(whoami)#[fg=white]::#[fg=blue]#(hostname -s)#[fg=white]::#[fg=yellow]#(curl ipecho.net/plain;echo)" 
set -g status-justify left 
set -g status-right '#[fg=Cyan]#S #[fg=white]%a %d %b %R' 

回答

1

顯然你還沒有開始tmux-server,這是tmux-server是在啓動時讀取~/.tmux.conf文件,但不tmux會議。

嘗試終止所有tmux會話並重新啓動例如tmux-server

$ tmux kill-server 

或者嘗試重新加載~/.tmux.conf無需重新啓動服務器這樣

:source-file ~/.tmux.conf 

大概有配置文件錯誤。