Open eode opened 3 years ago
Also -- yes, one could make a separate $PROMPT_FIELDS
item for user@host
, but then one loses the benefit of using $PROMPT_FIELD_COLORS
separately for user
and host
.
you could just use https://xon.sh/envvars.html#bottom-toolbar
The idea here is to use this library as a theme and not bring its own set of configurations as much as possible.
misplaced the comment
Also -- yes, one could make a separate
$PROMPT_FIELDS
item foruser@host
, but then one loses the benefit of using$PROMPT_FIELD_COLORS
separately foruser
andhost
.
This would be the better way to do it but I will be glad to accept a PR if you come up with a way to do it without repetition and no new standards.
What constitutes 'no new standards'? No specific environment variables, no new special characters in the string, or..?
something like here someuser>@>somehost>some>path -- someuser@somehost>some>path
or having redundant variables likes PL_TOOLBAR
, PL_PROMPT
, ...
It has to be natural to the way we define Prompt-fields for xonsh
Makes sense.
Is there any way to join fields without the $POWERLINE_MODE separator?
For example, one doesn't need
someuser>@>somehost>some>path
--someuser@somehost>some>path
is good.