reujab / silver

A cross-shell customizable powerline-like prompt with icons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Right prompt for shells not supporting it (bash, ion, powershell)

fdncred opened this issue · comments

I now have silver working (kind of) on windows but only the left side seems to work.

image

Here's the toml I'm using

[[left]]
name = "dir"
color.background = "blue"
color.foreground = "white"

[[left]]
name = "git"
color.background = "green"
color.foreground = "black"

[[right]]
name = "status"
color.background = "white"
color.foreground = "black"

[[right]]
name = "cmdtime"
color.background = "magenta"
color.foreground = "black"

[[right]]
name = "shell"
color.background = "green"
color.foreground = "black"

You can see in the screenshot that I changed the toml from black foreground to white just to see if it was seeing my toml file properly and it seems to be. Any ideas where to start with this?

Right prompt is currently only supported in zsh, fish and elvish, but you're free to contribute (changes should only be needed in init.ps1 file)

can you point me to the place where it's being disallowed? I'm not seeing it.

It is not disallowed, it's just Powershell that doesn't have an API for adding right prompt

https://github.com/reujab/silver/blob/master/src/init.ps1
It uses only silver lprint command, for printing right prompt segments you use silver rprint command