From: Stefan Huber Date: Thu, 11 Feb 2021 21:44:28 +0000 (+0100) Subject: zsh: Update zshrc and starship configs X-Git-Url: https://git.sthu.org/?p=shutils.git;a=commitdiff_plain;h=3d92e3e6953e6bd91b4482c9d9034b1887854f9d zsh: Update zshrc and starship configs --- 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"