dotfiles

[ACTIVE] managed with chezmoi
git clone git://git.figbert.com/dotfiles.git
Log | Files | Refs

commit 5c54b043e532bbbbd438f9377845fa86b2cda697
parent 478a7ae6391bacb1b3d484229f976256b71dd8c1
Author: FIGBERT <figbert@figbert.com>
Date:   Fri, 18 Jun 2021 22:16:50 -0700

Don't include battery section on server

Diffstat:
Ddot_config/starship.toml | 18------------------
Adot_config/starship.toml.tmpl | 19+++++++++++++++++++
2 files changed, 19 insertions(+), 18 deletions(-)

diff --git a/dot_config/starship.toml b/dot_config/starship.toml @@ -1,18 +0,0 @@ -add_newline = false - -[line_break] -disabled = true -[character] -success_symbol = "[✡︎](bold blue)" -error_symbol = "[✡︎](bold red)" -vicmd_symbol = "[✡︎](bold green)" -[battery] -[[battery.display]] -threshold = 10 -style = "bold red" -[[battery.display]] -threshold = 30 -style = "bold yellow" - -[username] -show_always = true diff --git a/dot_config/starship.toml.tmpl b/dot_config/starship.toml.tmpl @@ -0,0 +1,19 @@ +add_newline = false + +[line_break] +disabled = true +[character] +success_symbol = "[✡︎](bold blue)" +error_symbol = "[✡︎](bold red)" +vicmd_symbol = "[✡︎](bold green)" +{{ if ne .chezmoi.hostname "wailung" -}} +[battery] +[[battery.display]] +threshold = 10 +style = "bold red" +[[battery.display]] +threshold = 30 +style = "bold yellow" +{{ end -}} +[username] +show_always = true