├── UbuntuMono-B.ttf ├── UbuntuMono-BI.ttf ├── UbuntuMono-R.ttf ├── UbuntuMono-RI.ttf ├── README.md ├── install.vbs └── change_font_colors.ps1 /UbuntuMono-B.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kuddman/ubuntu-bash-layout-for-windows/HEAD/UbuntuMono-B.ttf -------------------------------------------------------------------------------- /UbuntuMono-BI.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kuddman/ubuntu-bash-layout-for-windows/HEAD/UbuntuMono-BI.ttf -------------------------------------------------------------------------------- /UbuntuMono-R.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kuddman/ubuntu-bash-layout-for-windows/HEAD/UbuntuMono-R.ttf -------------------------------------------------------------------------------- /UbuntuMono-RI.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kuddman/ubuntu-bash-layout-for-windows/HEAD/UbuntuMono-RI.ttf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ubuntu-bash-for-windows 2 | 3 | Combined a vbs script that installs the fonts that are present in the current directory in Windows 10 with a PowerShell script that modifies the apperance of the 'Ubuntu on Windows' bash to look like its counterpart in the original Ubuntu. Settings for this found on https://medium.com/@jgarijogarde/make-bash-on-ubuntu-on-windows-10-look-like-the-ubuntu-terminal-f7566008c5c2 and fonts are from http://font.ubuntu.com/ . 4 | -------------------------------------------------------------------------------- /install.vbs: -------------------------------------------------------------------------------- 1 | Option Explicit 2 | Dim objShell, objFSO, wshShell 3 | Dim strFontSourcePath, objFolder, objFont, objNameSpace, objFile 4 | 5 | Set objShell = CreateObject("Shell.Application") 6 | Set wshShell = CreateObject("WScript.Shell") 7 | Set objFSO = createobject("Scripting.Filesystemobject") 8 | 9 | strFontSourcePath = Replace(WScript.ScriptFullName, WScript.ScriptName, "") 10 | 11 | If objFSO.FolderExists(strFontSourcePath) Then 12 | 13 | Set objNameSpace = objShell.Namespace(strFontSourcePath) 14 | Set objFolder = objFSO.getFolder(strFontSourcePath) 15 | 16 | For Each objFile In objFolder.files 17 | 18 | If LCase(right(objFile,4)) = ".ttf" OR LCase(right(objFile,4)) = ".otf" Then 19 | If objFSO.FileExists(wshShell.SpecialFolders("Fonts") & objFile.Name) = False Then 20 | Set objFont = objNameSpace.ParseName(objFile.Name) 21 | objFont.InvokeVerb("Install") 22 | 23 | Set objFont = Nothing 24 | End If 25 | End If 26 | Next 27 | Else 28 | 'Wscript.Echo "Font Source Path does not exists" 29 | End If 30 | ' 31 | Set objShell = CreateObject("Wscript.shell") 32 | objShell.run("powershell -executionpolicy bypass -file .\change_font_colors.ps1") -------------------------------------------------------------------------------- /change_font_colors.ps1: -------------------------------------------------------------------------------- 1 | 2 | Get-ChildItem "HKCU:\Console\*ubuntu*" | ForEach-Object { 3 | Set-ItemProperty -Path Registry::$($_.Name) -Name FaceName -Value "Ubuntu Mono" 4 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable00 -Value 2361904 5 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable01 -Value 10773812 6 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable02 -Value 432718 7 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable03 -Value 10131462 8 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable04 -Value 204 9 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable05 -Value 8081525 10 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable06 -Value 41156 11 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable07 -Value 13621203 12 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable08 -Value 5461845 13 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable09 -Value 13606770 14 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable10 -Value 3465866 15 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable11 -Value 14869044 16 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable12 -Value 2697711 17 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable13 -Value 11042733 18 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable14 -Value 5237244 19 | Set-ItemProperty -Path Registry::$($_.Name) -Name ColorTable15 -Value 15658734 20 | # 21 | # 22 | # 23 | Set-ItemProperty -Path Registry::$($_.Name) -Name FontFamily -Value 54 24 | Set-ItemProperty -Path Registry::$($_.Name) -Name FontSize -Value 1048576 25 | Set-ItemProperty -Path Registry::$($_.Name) -Name FontWeight -Value 400 26 | Set-ItemProperty -Path Registry::$($_.Name) -Name InsertMode -Value 0 27 | Set-ItemProperty -Path Registry::$($_.Name) -Name PopupColors -Value 240 28 | Set-ItemProperty -Path Registry::$($_.Name) -Name ScreenBufferSize -Value 19660925 29 | Set-ItemProperty -Path Registry::$($_.Name) -Name ScreenColors -Value 15 30 | } --------------------------------------------------------------------------------