m
This commit is contained in:
@ -60,9 +60,10 @@ in {
|
||||
];
|
||||
}
|
||||
{
|
||||
type = "rprompt";
|
||||
type = "prompt";
|
||||
alignment = "right";
|
||||
newline = false;
|
||||
overflow = "hidden";
|
||||
newline = true;
|
||||
segments = [
|
||||
{
|
||||
type = "session";
|
||||
@ -71,10 +72,6 @@ in {
|
||||
background = "transparent";
|
||||
template = "{{ if .SSHSession }} {{ .UserName }}@{{ .HostName }} {{ end }}";
|
||||
}
|
||||
{
|
||||
type = "connection";
|
||||
template = "{{ if eq .Type \"wifi\"}} {{ else if eq .Type \"ethernet\"}} {{ else }} {{ end }}";
|
||||
}
|
||||
{
|
||||
style = "plain";
|
||||
foreground = "white";
|
||||
@ -98,7 +95,7 @@ in {
|
||||
style = "plain";
|
||||
foreground = "yellow";
|
||||
background = "transparent";
|
||||
template = "{{ .FormattedMs }}";
|
||||
template = " {{.FormattedMs}} ";
|
||||
properties = {
|
||||
threshold = 5000;
|
||||
};
|
||||
@ -113,7 +110,7 @@ in {
|
||||
{
|
||||
type = "text";
|
||||
style = "plain";
|
||||
foreground_templates = ["{{if gt .Code 0}}red{{end}}" "{{if eq .Code 0}}green{{end}}"];
|
||||
foreground_templates = ["{{if gt .Code 0}}red{{end}}" "{{if eq .Code 0}}cyan{{end}}"];
|
||||
background = "transparent";
|
||||
template = ">";
|
||||
}
|
||||
@ -121,14 +118,14 @@ in {
|
||||
}
|
||||
];
|
||||
transient_prompt = {
|
||||
foreground_templates = ["{{if gt .Code 0}}red{{end}}" "{{if eq .Code 0}}green{{end}}"];
|
||||
foreground_templates = ["{{if gt .Code 0}}red{{end}}" "{{if eq .Code 0}}cyan{{end}}"];
|
||||
background = "transparent";
|
||||
template = "> ";
|
||||
};
|
||||
secondary_prompt = {
|
||||
foreground = "green";
|
||||
foreground = "cyan";
|
||||
background = "transparent";
|
||||
template = ">> ";
|
||||
template = "-> ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user