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