2014-05-21 3 views
0

Essayer d'exécuter tmux sous OS X Mavericks.Impossible d'exécuter tmux sous OS X Mavericks

Voici mon ~/.tmux.conf

# 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 

-je obtenir l'erreur suivante quand j'exécute tmux:

/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 

Répondre

3

Je soupçonne que votre fichier a des fins de ligne CR + LF; tmux s'attend à ce que les fins de ligne normales de type Unix soient de type Unix.

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

fonctionne comme un charme! Merci :) – levelone

0

Vous pouvez également utiliser dosu2unix (disponible par le biais MacPorts)

Questions connexes