JanDeDobbeleer / oh-my-posh

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

Missing rprompt segments #1356

Closed andreamatt closed 2 years ago

andreamatt commented 2 years ago

Code of Conduct

What happened?

I just installed ohmyposh and I cannot get the right segments to show. I tried different themes, but with no success.

With tilix: image

With pop-OS terminal: image

Fish version 3.3.1, oh-my-posh version 6.20.0 Fish config: image

Theme

jandedobbeleer

What OS are you seeing the problem on?

Linux

Which shell are you using?

fish

Log output

Version: 6.20.0

Segments:

ConsoleTitle(true)   -   0 ms - uni in ~
session(true)        -   0 ms -  andrea 
path(true)           -   0 ms -    ~ 
git(false)           -   0 ms - 
node(false)          -   0 ms - 
go(false)            -   0 ms - 
julia(false)         -   0 ms - 
python(false)        -   0 ms - 
ruby(false)          -   0 ms - 
azfunc(false)        -   0 ms - 
aws(false)           -   0 ms - 
root(false)          -   0 ms - 
executiontime(true)  -   0 ms -  ﮫ0ms⠀
exit(true)           -   0 ms -   
shell(true)          -   0 ms -   uni 
ytm(false)           -   0 ms - 
battery(false)       -   0 ms - 
time(true)           -   0 ms -  18:09:05 

Run duration: 1.43471ms

Logs:

2021/12/01 18:09:05 debug: getenv

2021/12/01 18:09:05 getenv duration: 5.61µs, args: XDG_CACHE_HOME
2021/12/01 18:09:05 getCachePath duration: 21.771µs, args: 
2021/12/01 18:09:05 getArgs duration: 70ns, args: 
2021/12/01 18:09:05 getArgs duration: 50ns, args: 
2021/12/01 18:09:05 getShellName duration: 241ns, args: 
2021/12/01 18:09:05 debug: getenv

2021/12/01 18:09:05 getenv duration: 1.654µs, args: OMP_CACHE_DISABLED
2021/12/01 18:09:05 isRunningAsRoot duration: 401ns, args: 
2021/12/01 18:09:05 getcwd duration: 18.464µs, args: 
2021/12/01 18:09:05 getPathSeperator duration: 70ns, args: 
2021/12/01 18:09:05 getPathSeperator duration: 40ns, args: 
2021/12/01 18:09:05 getShellName duration: 61ns, args: 
2021/12/01 18:09:05 getCurrentUser duration: 201ns, args: 
2021/12/01 18:09:05 getHostName duration: 1.302µs, args: 
2021/12/01 18:09:05 getcwd duration: 140ns, args: 
2021/12/01 18:09:05 getCurrentUser duration: 140ns, args: 
2021/12/01 18:09:05 getRuntimeGOOS duration: 70ns, args: 
2021/12/01 18:09:05 debug: getenv

2021/12/01 18:09:05 getenv duration: 3.507µs, args: SSH_CONNECTION
2021/12/01 18:09:05 debug: getenv

2021/12/01 18:09:05 getenv duration: 1.132µs, args: SSH_CLIENT
2021/12/01 18:09:05 debug: getenv

2021/12/01 18:09:05 getenv duration: 1.102µs, args: POSH_SESSION_DEFAULT_USER
2021/12/01 18:09:05 getcwd duration: 90ns, args: 
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getArgs duration: 60ns, args: 
2021/12/01 18:09:05 getcwd duration: 61ns, args: 
2021/12/01 18:09:05 getRuntimeGOOS duration: 50ns, args: 
2021/12/01 18:09:05 getRuntimeGOOS duration: 51ns, args: 
2021/12/01 18:09:05 getPathSeperator duration: 50ns, args: 
2021/12/01 18:09:05 getPathSeperator duration: 60ns, args: 
2021/12/01 18:09:05 getPathSeperator duration: 50ns, args: 
2021/12/01 18:09:05 getRuntimeGOOS duration: 51ns, args: 
2021/12/01 18:09:05 getcwd duration: 60ns, args: 
2021/12/01 18:09:05 getRuntimeGOOS duration: 60ns, args: 
2021/12/01 18:09:05 debug: getenv

2021/12/01 18:09:05 getenv duration: 1.402µs, args: WSL_DISTRO_NAME
2021/12/01 18:09:05 isWsl duration: 3.818µs, args: 
2021/12/01 18:09:05 hasCommand duration: 13.495µs, args: git
2021/12/01 18:09:05 getcwd duration: 61ns, args: 
2021/12/01 18:09:05 error: hasParentFilePath
stat /.git: no such file or directory
2021/12/01 18:09:05 hasParentFilePath duration: 9.638µs, args: .git
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getPathSeperator duration: 50ns, args: 
2021/12/01 18:09:05 hasFiles duration: 61.495µs, args: *.py
2021/12/01 18:09:05 getcwd duration: 51ns, args: 
2021/12/01 18:09:05 getPathSeperator duration: 50ns, args: 
2021/12/01 18:09:05 hasFiles duration: 41.077µs, args: *.ipynb
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getPathSeperator duration: 50ns, args: 
2021/12/01 18:09:05 hasFiles duration: 5.31µs, args: pyproject.toml
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getPathSeperator duration: 50ns, args: 
2021/12/01 18:09:05 hasFiles duration: 4.619µs, args: venv.bak
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getPathSeperator duration: 50ns, args: 
2021/12/01 18:09:05 hasFiles duration: 4.439µs, args: venv
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getPathSeperator duration: 50ns, args: 
2021/12/01 18:09:05 hasFiles duration: 4.368µs, args: .venv
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 getcwd duration: 51ns, args: 
2021/12/01 18:09:05 getcwd duration: 51ns, args: 
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 debug: getenv

2021/12/01 18:09:05 getenv duration: 6.672µs, args: AWS_VAULT
2021/12/01 18:09:05 debug: getenv

2021/12/01 18:09:05 getenv duration: 1.193µs, args: AWS_PROFILE
2021/12/01 18:09:05 debug: getenv

2021/12/01 18:09:05 getenv duration: 1.042µs, args: AWS_REGION
2021/12/01 18:09:05 debug: getenv

2021/12/01 18:09:05 getenv duration: 1.021µs, args: AWS_DEFAULT_REGION
2021/12/01 18:09:05 debug: getenv

2021/12/01 18:09:05 getenv duration: 992ns, args: AWS_CONFIG_FILE
2021/12/01 18:09:05 error: getFileContent
open /home/andrea/.aws/config: no such file or directory
2021/12/01 18:09:05 getFileContent duration: 4.779µs, args: /home/andrea/.aws/config
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 isRunningAsRoot duration: 281ns, args: 
2021/12/01 18:09:05 getcwd duration: 50ns, args: 
2021/12/01 18:09:05 executionTime duration: 110ns, args: 
2021/12/01 18:09:05 getcwd duration: 61ns, args: 
2021/12/01 18:09:05 lastErrorCode duration: 70ns, args: 
2021/12/01 18:09:05 getcwd duration: 130ns, args: 
2021/12/01 18:09:05 getShellName duration: 70ns, args: 
2021/12/01 18:09:05 getcwd duration: 71ns, args: 
2021/12/01 18:09:05 error: doGet
Get "http://127.0.0.1:9863/query": dial tcp 127.0.0.1:9863: connect: connection refused
2021/12/01 18:09:05 doGet duration: 170.569µs, args: http://127.0.0.1:9863/query
2021/12/01 18:09:05 getcwd duration: 80ns, args: 
2021/12/01 18:09:05 getBatteryInfo duration: 14.737µs, args: 
2021/12/01 18:09:05 getcwd duration: 50ns, args:
JanDeDobbeleer commented 2 years ago

@andreamatt fish doesn't have support for rprompt (yet). It should be possible though, we just never added it.

andreamatt commented 2 years ago

Thanks, I hope the feature will be added soon

github-actions[bot] commented 6 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.