LoginSignup
8
8

More than 5 years have passed since last update.

Mac+Tmux+Powerlineでステータスラインが増え続けるのをどうにかする

Posted at

どうなるの

tmuxがステータスラインの情報を更新するたび、ステータスラインが増えていく。
https://github.com/erikw/tmux-powerline/issues/125

これはtmux-powerlineのissuesだけど、powerlineでも同じっぽい。

なにしたの

  • シェルでLAGN=ja_JP.UTF-8とか設定する

しかし何も起こらなかった。

  • iTerm2なら「Treat ambigous-width characters as double width」のチェックを外す
  • ターミナルなら「Unicode East Asian Ambiguous character are wide」のチェックを外す

VimとかEmacsで☆とか※とか使うと悲惨。

どうしたの

tmuxにパッチ当てる。
https://gist.github.com/waltarix/1399751

パッチの当て方はこちらの記事で詳しく解説されているのでお任せする。
http://qiita.com/macoshita/items/2ee3c15f362103d1e373

なにがダメだったの

Ambiguous characters
とてもいい加減に言うと、時と場合によって全角だったり半角だったりする文字。らしい。
全角半角どっちでもいけちゃう曖昧な文字だからAmbiguous characters。
上記ターミナルの設定は、そういう文字列は全部「全角」として扱いますよっていうオプション。

まとめ

日本語つらい。

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8