JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
17.38k stars 2.39k forks source link

Wifi segment not showing on Windows 11 #1312

Closed NileshGule closed 2 years ago

NileshGule commented 2 years ago

Code of Conduct

What happened?

I have added the Wifi segment to the json file. It doe not show any information on the prompt.

Please refer to the wifi segment configuration https://github.com/NileshGule/windows-dev-playbook/blob/master/profiles/oh-my-posh.omp.json

image

Theme

https://github.com/NileshGule/windows-dev-playbook/blob/master/profiles/oh-my-posh.omp.json

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

   Write-PoshDebug

Here are the timings of segments in your prompt:

ConsoleTitle(true)   -   1 ms - root :: pwsh :: windows-dev-playbook
shell(true)          -   0 ms -   pwsh 
battery(true)        -   4 ms -   26  
time(true)           -  22 ms -   00:38  
text(true)           -   0 ms - ▓
kubectl(true)        - 756 ms -  ﴱ azure-azconf-live-demo-cluster
az(true)             - 466 ms -  ﴃ Microsoft Azure Sponsorship 
root(true)           -   0 ms -   
os(true)             -   0 ms -  
path(true)           -   0 ms -   windows-dev-playbook 
git(true)            - 108 ms -   master ≡
node(false)          -   0 ms -
go(false)            -   0 ms -
julia(false)         -   0 ms -
python(false)        -   0 ms -
ruby(false)          -   0 ms -
azfunc(false)        -   0 ms -
dotnet(false)        -   0 ms -
aws(false)           -   0 ms -
executiontime(true)  -   0 ms -  羽9.001s
exit(true)           -   0 ms -  ﰌ1337 
text(true)           -   0 ms -  

-----------------------------------------------------------------
oh-my-posh --debug --shell uni --config="$POSH_THEME"

Here are the timings of segments in your prompt:

ConsoleTitle(true) -   0 ms -
session(true)  -   0 ms -  niles@DESKTOP-HFOT07V 
path(true)     -   0 ms -   windows-dev-playbook 
git(true)      -  15 ms -  master 
battery(true)  -   3 ms -  29 
node(false)    -   0 ms -
shell(true)    -   0 ms -  ﲵ uni 
root(true)     -   0 ms -   
text(true)     -   0 ms -  NO CONFIG 
exit(true)     -   0 ms -   
JanDeDobbeleer commented 2 years ago

@NileshGule I think you might need to update oh-my-posh first

Additionally, the template line needs to be a single line.

NileshGule commented 2 years ago

@NileshGule I think you might need to update oh-my-posh first

@JanDeDobbeleer I have already update the oh-my-posh image

I saw the same issue is happening with the sysinfo segment as well. Nothing is getting rendered on the prompt

JanDeDobbeleer commented 2 years ago

Did you restart your shell? Because the output from Write-PoshDebug is not the latest version.

NileshGule commented 2 years ago

hi @JanDeDobbeleer Restarting the shell did the trick

Now I am able to see wifi and the sysinfo segments

Thanks image

github-actions[bot] commented 7 months ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.