-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't figure out how to appy that to windows10 ubuntu bash #20
Comments
Can't figure out to apply over anything on Windows 10 Build 15063.13 |
Same. I have it all installed, I verified the script is being sourced (I also tried sourcing it directly). No colors are changing. Edit: maybe some colors are changing. Kind of looks like the text background changed to black. But the theme is definitely not applying. Windows build 15063.rs2_release.170317-1834. |
The theme cannot be applied to Windows 10 build 15063.138 |
Finally figured out how to make it work. The registry key should be set as HKEY_CURRENT_USER\Console%SystemRoot%_System32_bash.exe or HKEY_CURRENT_USER\Console%SystemRoot%_system32_cmd.exe instead of HKEY_CURRENT_USER\Console in the *.reg files. Also the command prompt or bash should be started via win + r instead of win + s, and then the theme configuration could be loaded successfully. |
Thanks @andy-liu-9711 . As you said, it only works if I spawn bash with win-r. Why does it matter if I run it from win-r, win-s or win? |
@mxtopher when you run win-s it will use the shortcut to open the application. with win-r you run the command. To get Bash on Ubuntu on Windows to use the correct color scheme you have to re-create the Shortcut. A shortcut seems to save the color setting in the shortcut. It does not respect the settings from the registry.
Besides of recreating the shortcuts you also have to add the registry key suggested by @andy-liu-9711 |
@OliverMartini may I ask how to create a shortcut with the color setting in it? |
@spiedeman; At the time a Windows Shortcut is created, the then current color settings are used. After you applied the new color settings, simply remove/delete the shortcuts form the Windows Start Menu and recreated them. e.g. Replace Windows PowerShell shortcut
These are the steps to recreate the shortcuts to use the new color profiles. Do the same for Ubuntu Bash, Cmd Prompt, etc. shortcuts. |
@andy-liu-9711 it looks like github markdown may be causing the registry key location to not render correctly.. what is shown is missing a backslash. The full locations I found to work are:
|
If we take the change with #19, it should resolve this. The shortcut link is what dictates the color scheme and the change provides a way to easily apply different color schemes to a .lnk file. |
Thank you for the theme it is so much nicer, currently on bash with the dark theme; the folders are highlight with a gray box, is there a way to remove the highlight box and just use a different color font instead ? |
@StephaneKazmierczak, you will still probably want to apply the Solarized .dir_colors to match. Right now I'm using dircolors.256dark from seebi/dircolors-solarized. Clone the dircolors-solarized project then link Each user needs to apply this though, so if you su root, you will get the same thing you see now. The I just source this at the end of my |
I remember having done that successfully while i was still using a full linux os, |
No, I can't think of anything. Do you see 256 colors when you run this script? |
the script failed :-en \e[38;5;{0..256}m {0..256} \e[0m |
@StephaneKazmierczak How are you launching Bash? If you're using the Bash shortcut that existed before you applied the registry file, try launching "bash" directly from Run / Windows + R. What shell are you using? I can't reproduce that script failing. |
@Thynix I found that the {} in the for loop is not working in the windows bash |
I used sh command that was my problem, now I can see the colors and numbers |
does anyone know how to save the font setting for bash on windows 10? |
Also I found that coloring of the folder work on remote machine without any config |
@StephaneKazmierczak Did you manage to fix the highlighting of the folder names? I'll answer myself.: @rbeesley solution above fixes the folder names color. |
|
I don't know how to apply
" Copy the Set-Solarized*ColorDefaults.ps1 files to your profile directory, likely ~\Documents\WindowsPowerShell. Then add the following line of code to the end of your Microsoft.PowerShell_profile.ps1 or profile.ps1:"
to the windows 10 ubuntu bash, i tried to add that to the .bash_profile and .bashrc, but it can't recognize the line..
The text was updated successfully, but these errors were encountered: