From 3d92e3e6953e6bd91b4482c9d9034b1887854f9d Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 11 Feb 2021 22:44:28 +0100 Subject: [PATCH] zsh: Update zshrc and starship configs --- dotfiles/shell/.zshrc | 4 ++-- dotfiles/shell/starship.toml | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/dotfiles/shell/.zshrc b/dotfiles/shell/.zshrc index 36d46fd..c187a58 100644 --- a/dotfiles/shell/.zshrc +++ b/dotfiles/shell/.zshrc @@ -72,10 +72,10 @@ TIMEFMT="$fg[magenta]%J %U user %S sys %P cpu %*E total %M MB RSS max$termi # Load starship if exists, and that's it. -if [ $TERM != "linux" ] && type "starship" > /dev/null; then +#if [ $TERM != "linux" ] && type "starship" > /dev/null; then eval "$(starship init zsh)" return -fi +#fi # Otherwise, do some homebrewn configuration diff --git a/dotfiles/shell/starship.toml b/dotfiles/shell/starship.toml index 40df2e8..485f112 100644 --- a/dotfiles/shell/starship.toml +++ b/dotfiles/shell/starship.toml @@ -9,3 +9,14 @@ style_user = "bold green" [git_branch] style = "bold yellow" + +[status] +disabled = false + +[[battery.display]] +threshold = 10 +style = "bold red" + +[[battery.display]] +threshold = 30 +style = "bold yellow" -- 2.39.5