2014-05-21 2 views
0

OS X Mavericks에서 tmux를 실행하려고합니다. 여기 OS X Mavericks에서 tmux를 실행할 수 없습니다.

가 내

# Keybindings 
unbind c 
unbind C-b 
unbind C-a 
unbind % 
unbind , 
unbind . 
unbind n 
unbind p 
unbind '"' 
unbind l 
unbind & 
unbind "'" 
# set-option -g prefix C-a # C-a for perfix just like screen 
set -g prefix ` 
bind-key ` send-prefix 
bind-key n new-window 
bind-key C-a last-window 
bind-key | split-window -h 
bind-key \ split-window -h 
bind-key - split-window -v 
bind-key x kill-pane 
bind-key X kill-window 
# bind-key q confirm-before kill-session 
bind-key q confirm-before kill-server 
bind-key , previous-window # < 
bind-key . next-window # > 
bind-key < swap-window -t :- 
bind-key > swap-window -t :+ 
# bind-key Escape copy-mode -u 
# bind-key Up copy-mode -u 
bind-key r source-file ~/.tmux.conf\; display-message " ✱ ~/.tmux.conf was reloaded" 
bind-key R refresh-client 
# bind-key a send-key C-a 

# set status bar 
set-option -g status-utf8 on 
set-option -g status-bg colour232 
set-option -g status-fg colour235 
# set-option -g status-left '⣿' 
# set-option -g status-right '⡇ #[bold]❐ #S:#I#[default] ⡇ #[bold]#(whoami) ● #H#[default] ' 
# set-option -g status-right '⡇ ❐ #S ⡇ ❖ #(rvm tools identifier) ⡇ #(whoami) ● #H ' 
set-option -g status-left '⣿' 
set-option -g status-right '#(whoami) ● #H#[default] ' 
set-option -g status-right-length 60 
set-option -g status-left-length 60 
# highlight active window 
set-window-option -g window-status-current-bg colour10 
set-window-option -g window-status-current-fg colour234 

~/.tmux.conf 나는 내가 TMUX 실행할 때 다음과 같은 오류가 발생합니다 : 나는 당신의 파일을 CR + LF 라인 엔딩을 가지고 있다고 의심

/Users/marcseifert/.tmux.conf:2: unknown key: c                                        [0/0] 
/Users/marcseifert/.tmux.conf:3: unknown key: C-b 
/Users/marcseifert/.tmux.conf:4: unknown key: C-a 
/Users/marcseifert/.tmux.conf:5: unknown key: % 
/Users/marcseifert/.tmux.conf:6: unknown key: , 
/Users/marcseifert/.tmux.conf:7: unknown key: . 
/Users/marcseifert/.tmux.conf:8: unknown key: n 
/Users/marcseifert/.tmux.conf:9: unknown key: p 
/Users/marcseifert/.tmux.conf:10: unknown key: " 
/Users/marcseifert/.tmux.conf:11: unknown key: l 
/Users/marcseifert/.tmux.conf:12: unknown key: & 
/Users/marcseifert/.tmux.conf:13: unknown key: ' 
/Users/marcseifert/.tmux.conf:16: bad key: ` 
/Users/marcseifert/.tmux.conf:17: unknown command: send-prefix 
/Users/marcseifert/.tmux.conf:19: unknown command: new-window 
/Users/marcseifert/.tmux.conf:20: unknown command: last-window 
/Users/marcseifert/.tmux.conf:21: usage: split-window [-dhvP] [-c start-directory] [-F format] [-p percentage|-l size] [-t target-pane] [command] 
/Users/marcseifert/.tmux.conf:22: usage: split-window [-dhvP] [-c start-directory] [-F format] [-p percentage|-l size] [-t target-pane] [command] 
/Users/marcseifert/.tmux.conf:23: usage: split-window [-dhvP] [-c start-directory] [-F format] [-p percentage|-l size] [-t target-pane] [command] 
/Users/marcseifert/.tmux.conf:24: unknown command: kill-pane 
/Users/marcseifert/.tmux.conf:25: unknown command: kill-window 
/Users/marcseifert/.tmux.conf:35: unknown command: refresh-client 
/Users/marcseifert/.tmux.conf:39: bad value: on 
/Users/marcseifert/.tmux.conf:40: bad colour: colour232 
/Users/marcseifert/.tmux.conf:41: bad colour: colour235 
/Users/marcseifert/.tmux.conf:49: value is invalid: 60 
/Users/marcseifert/.tmux.conf:50: value is invalid: 60 
/Users/marcseifert/.tmux.conf:53: bad colour: colour10 
/Users/marcseifert/.tmux.conf:54: bad colour: colour234 
/Users/marcseifert/.tmux.conf:56: bad attributes: dim 
/Users/marcseifert/.tmux.conf:60: bad value: off 
/Users/marcseifert/.tmux.conf:61: bad value: on 
/Users/marcseifert/.tmux.conf:62: bad value: on 
/Users/marcseifert/.tmux.conf:65: bad value: on 
/Users/marcseifert/.tmux.conf:67: bad value: off 
/Users/marcseifert/.tmux.conf:69: bad attributes: normal 
/Users/marcseifert/.tmux.conf:75: bad value: on 
/Users/marcseifert/.tmux.conf:76: unknown value: vi 
/Users/marcseifert/.tmux.conf:77: unknown value: on 
/Users/marcseifert/.tmux.conf:84: bad colour: yellow 
/Users/marcseifert/.tmux.conf:85: bad colour: white 
/Users/marcseifert/.tmux.conf:88: value is invalid: 2000 
/Users/marcseifert/.tmux.conf:92: unknown value: vi 
/Users/marcseifert/.tmux.conf:93: usage: select-pane [-lDLRU] [-t target-pane] 
/Users/marcseifert/.tmux.conf:94: usage: select-pane [-lDLRU] [-t target-pane] 
/Users/marcseifert/.tmux.conf:95: usage: select-pane [-lDLRU] [-t target-pane] 
/Users/marcseifert/.tmux.conf:96: usage: select-pane [-lDLRU] [-t target-pane] 
/Users/marcseifert/.tmux.conf:102: unknown command: copy-mode 
/Users/marcseifert/.tmux.conf:103: unknown command: paste-buffer 
/Users/marcseifert/.tmux.conf:107: unknown command: begin-selection 
/Users/marcseifert/.tmux.conf:119: value is invalid: 1 

답변

3

을; tmux은 일반적인 유닉스 스타일의 LF 전용 줄 끝 문자를 기대합니다.

perl -pi -e 's/\r$//' ~/.tmux.conf 
+0

작품 (MacPorts 가능) dosu2unix를 사용할 수 있습니다! 감사 :) – levelone

0

또한 마법처럼