Skip to content

Instantly share code, notes, and snippets.

@sgk
Last active April 8, 2016 14:30
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgk/5991138 to your computer and use it in GitHub Desktop.
Save sgk/5991138 to your computer and use it in GitHub Desktop.
Gnome端末の日本語表示で「↑」とか「◯」の幅を全角にする(Ubuntu 14.10用)。

Ubuntu 15.04では、プロファイル設定の「互換性」タブで設定できるので不要。この方法は機能しない。

  • このファイルを、~/.local/share/applications以下に、○○.desktopなどという名前で置き、実行権限をつける。
  • Nautilus(ファイルブラウザ)から、このファイルを開く。
  • 端末が開いてランチャにアイコンが現れるので、アイコンを右クリック→「Launcherに登録」をクリック。

vimではまた別の問題があるので、.vimrcの中で「set ambiwidth=double」も必要。

[Desktop Entry]
Name=CJK Terminal
Comment=CJK Terminal
TryExec=gnome-terminal
Exec=env VTE_CJK_WIDTH=1 gnome-terminal --disable-factory
Icon=utilities-terminal
Type=Application
Categories=GNOME;GTK;Utility;TerminalEmulator;
StartupNotify=true
OnlyShowIn=GNOME;Unity;
Keywords=Run;
Actions=New
X-Ubuntu-Gettext-Domain=gnome-terminal
[Desktop Action New]
Name=New Terminal
Exec=env VTE_CJK_WIDTH=1 gnome-terminal --disable-factory
OnlyShowIn=Unity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment