tmux terminfoをscreen-256colorに設定するには? [コピー]

tmux terminfoをscreen-256colorに設定するには? [コピー]

tmuxを使用しない場合、端末は次のようになります。

~$ echo $TERM
xterm

.bashrに以下を追加してtmuxを使用する場合

# tmux configuration
tmux attach &> /dev/null

if [[ ! $TERM =~ screen ]]; then
    exec tmux
fi

鉱山.tmux.confには1行ありますが、set-option -g default-terminal "screen-256color"ターミナルは次のとおりです。

~$ echo $TERM
screen

これはVIMを醜くします。 tmuxでscreen-256colorを使用するにはどうすればよいですか? Ubuntu 14.02でgnome端末を使用する

ベストアンサー1

私も同じ問題があります(私がset-option -g default-terminal "screen-256color"うまくいかないようです)。

だから256色が必要なときはいつでもtmux -2強制的に使います。

これは回避策ではなく回避策です。

おすすめ記事