DEV Community

sun6eal
sun6eal

Posted on • Edited on

Change font and theme of WSL/Bash

Theme

As this post pointed out, windows console supports 24bit color. Open a cmd.exe or ubuntu bash window, right click the title bar, select Properties and you are good to go.

Just for curiousness, this script(https://github.com/bitcrazed/24bit-color) can display color bar in your terminal for test.

Color tool

In this post, a color tool can help you quickly apply a itemcolors theme to your terminal.

Tmux

Tmux now supports 256 colors, we can set colors like this:

# .tmux.conf
set -g status-fg colour255
Enter fullscreen mode Exit fullscreen mode

Tips: You have to kill all other tmux sessions to see your changes.

For full color name list, check this out.

Font

Windows console are very nitpicking, we can only choose fonts designed for the current code page. The bash on ubuntu on windows uses utf8 code page, and the cmd.exe usually uses another code page. We can't change it permanently, that is very annony.

After a lot of dirty works, I still could not get it work, and finally this font comes to rescue, set it to cmd.exe and the wsl/bash separatelly.

Here is the screen shot.

screenshot

Top comments (0)