Comments (7)
Yup. I would just use fmt.Sprintf
to return the string and default to "WSL" rather than an icon.
from oh-my-posh.
Do you think adding some kind of indicator or the WSL Distro Name to the os segment would be a solution to this? Or should it be it's own segment?
from oh-my-posh.
@nwykes yes, that's actually a good idea. What I'd do in that could something along these lines (peudo).
switch os {
case wsl:
return WSLIcon + distroname
case unix:
return UnixIcon // (map to DistroIcon?)
case windows:
return WindowIcon
case darwin:
return MacOSIcon
}
I would always give the default value a string value, as in for WindowsIcon return "Windows" of not set etc...
That way it always works regardless of the font that was being used at the time of development (unless we make it a requirement to always use Meslo).
from oh-my-posh.
Is there a standard "WSL" icon? I'm not seeing one in nerdfonts.
from oh-my-posh.
Not really, we could default to a Windows icon maybe.
from oh-my-posh.
Sounds good. "Windows Icon - Distro Name" or "Windows Icon - Distro Icon" when we have that support in the os segment.
from oh-my-posh.
let me know if this concept works for this. still need to work on the distro specific icons.
probably more props like wsl_separator could be added
from oh-my-posh.
Related Issues (20)
- rendering problem in windows terminal app (work fine in vs code terminal) HOT 4
- & was unexpected at this time. HOT 1
- feat: amrobytes - a new theme HOT 2
- left prompt character going to next line when python virtualenv is activated in pwsh + windows terminal. HOT 1
- WSL bash no git info on windows mounts HOT 1
- A changelog file with breaking changes would be nice HOT 1
- Prompt is often rendered in black and white HOT 3
- Oh My Posh not starting for cmd HOT 1
- 20+ second boot time HOT 2
- Allow transient prompt alignment (segments or left/right_template or whatever...) HOT 1
- Invoke-Expression is used HOT 1
- Android AArch64 build HOT 1
- iTerm2 shell integration HOT 1
- Ability to not process the command in `command`
- I always lost my customize when I open the new tab HOT 1
- The git segment doesn't render correctly when switching to a shorter branch name HOT 6
- plugin system like "oh-my-zsh" HOT 1
- python segment not working
- Firebase segment does not work on child folders HOT 2
- Line wrapping the time to 2nd line HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oh-my-posh.