After installed Vim
on wsl
, I found that the display font changed to SimSun
(A very ugly font) when I open Vim.
I tried to use :set guifont font-name
but it didn’t work at all, it annoyed me a lot. The hatred of Windows-fucking-bug-10 had seen absolute growth. :( What the fuck?!
Fourtunately, I found a solution by editing Registry
on Windows 10.
DWORD
record in HKEY_CURRENT_USER\Console\C:_Program Files_WindowsApps_CanonicalGroupLimited.UbuntuonWindows_1804.2018.817.0_x64__79rhkp1fndgsc_ubuntu.exe
named CodePage
Decimal
and value 65001
or Hexadecimal
and value fde9
It’s fucking working now. Fuck! I do not judge Windows 10, but I’ve wasted a lot of time solving these sort of egg-painful things!
Command line on Windows is incurable, anything has done is just a waste of time. The best solution is just use Cmder instead.
Besides, I suggest you to use zsh
instead of Powershit
(Powershell
) or cnm
(cmd
).
After installed zsh
, oh-my-zsh
on your WSL
, append following scripts to your ~/.bashrc
file.
1 | bash -c zsh |
And set {WSL::bash}
as the default shell of cmder
.
Now enjoy your new fantastic terminal. :)
↶ 返回首页