Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git color not visible through Ubuntu in WSL

I have modified the color of my shell thanks to this tutorial : https://medium.com/@jgarijogarde/make-bash-on-ubuntu-on-windows-10-look-like-the-ubuntu-terminal-f7566008c5c2

It is great, nevertheless, I can no anymore see my active branch on GIT.

enter image description here

In the properties, I don't understand how to choose the right slot to modify the color of the text.

enter image description here

Would someone have an idea ?

like image 658
FrancNovation Avatar asked Jan 15 '19 10:01

FrancNovation


People also ask

How do I add color to WSL?

The easiest mode to have Ubuntu colors on the WSL Ubuntu bash is to use the new Windows Terminal app (you can find it on the Windows Store), add the color scheme inside the windows-terminal-color-scheme. json file to the custom colors of the Windows Terminal settings and set it as the default for the Ubuntu profile.

Can I use git in WSL?

Git can be installed on Windows AND on WSL.

Can you run Ubuntu GUI on WSL?

Overview. Windows Subsystem for Linux (WSL) allows you to install a complete Ubuntu terminal environment in minutes on your Windows machine, allowing you to develop cross-platform applications without leaving windows.


1 Answers

I long ago wrote this registry file that you can give a try. The colors are tweaked a bit if you don't mind. This worked for me with a beautiful look.

Windows Registry Editor Version 5.00

; Values stored as 00-BB-GG-RR
;[HKEY_CURRENT_USER\Console\%SystemRoot%_system32_bash.exe]
[HKEY_CURRENT_USER\Console\C:_Program Files_WindowsApps_CanonicalGroupLimited.UbuntuonWindows_1804.2018.817.0_x64__79rhkp1fndgsc_ubuntu.exe]
"CodePage"=dword:000001b5

; BLACK DGRAY
"ColorTable00"=dword:00240A30
"ColorTable08"=dword:00cfd7d3
; BLUE LBLUE
;"ColorTable01"=dword:00a46534
"ColorTable01"=dword:00cf9f72
"ColorTable09"=dword:00ffbf8e
; GREEN LGREEN
;"ColorTable02"=dword:00069a4e
"ColorTable02"=dword:0034e28a
"ColorTable10"=dword:0068ff9f
; CYAN LCYAN
;"ColorTable03"=dword:009a9806
"ColorTable03"=dword:00e2e234
"ColorTable11"=dword:00ffff68
; RED LRED
;"ColorTable04"=dword:000000cc
"ColorTable04"=dword:002929ef
"ColorTable12"=dword:005252ff
; MAGENTA LMAGENTA
;"ColorTable05"=dword:007b5075
"ColorTable05"=dword:00a87fad
"ColorTable13"=dword:00ff9aff
; YELLOW LYELLOW
;"ColorTable06"=dword:0000a0c4
"ColorTable06"=dword:004fe9fc
"ColorTable14"=dword:006fffff
; LGRAY WHITE
;"ColorTable07"=dword:00cfd7d3
"ColorTable07"=dword:00eceeee
"ColorTable15"=dword:00ffffff

Save the above content into a text file with the extension .reg, and double click the file. Then you can see the effects.

like image 180
iBug Avatar answered Nov 10 '22 00:11

iBug