Skip to content
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

WSL (bash in windows) install fix #128

Open
fizux opened this issue Mar 7, 2018 · 0 comments
Open

WSL (bash in windows) install fix #128

fizux opened this issue Mar 7, 2018 · 0 comments

Comments

@fizux
Copy link

fizux commented Mar 7, 2018

I had problems using oh-my-git with bash in windows (aka WSL / Windows Subsystem for Linux), specifically getting the Awesome Terminal Fonts to display icons. This ended up working for me...

Install the patched font Droid Sans Mono Awesome, available at:
https://github.com/gabrielelana/awesome-terminal-fonts/blob/patching-strategy/patched/Droid+Sans+Mono+Awesome.ttf?raw=true

Windows recently changed to a "new" console that ignores the legacy console font registry keys, and WSL will not run in legacy console mode. The new reg key will look something like:
HKCU\Console\{asinine_wsl_key}

mine was:
HKEY_CURRENT_USER\Console\C:_Program Files_WindowsApps_CanonicalGroupLimited.UbuntuonWindows_1604.2017.922.0_x64__79rhkp1fndgsc_ubuntu.exe

I used regedit.exe to make the change in the pic below. Look for the entry named "FaceName", and change its string value to "Droid Sans Mono Awesome".
regedit

From the bash shell, run the normal Ubuntu one-liner:
git clone https://github.com/arialdomartini/oh-my-git.git ~/.oh-my-git && echo source ~/.oh-my-git/prompt.sh >> ~/.bashrc

Note that the Droid Awesome font will not show up in the list of selectable fonts from the defaults and properties menu of the bash window. One day, I'll be motivated enough to figure out how to fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant