zsh: Update zshrc and starship configs
authorStefan Huber <shuber@sthu.org>
Thu, 11 Feb 2021 21:44:28 +0000 (22:44 +0100)
committerStefan Huber <shuber@sthu.org>
Thu, 11 Feb 2021 21:44:28 +0000 (22:44 +0100)
dotfiles/shell/.zshrc
dotfiles/shell/starship.toml

index 36d46fd37446e8b59b743ff86be823474ef4c0c5..c187a58e7204deab9b5afed3f3b2a028e43a0986 100644 (file)
@@ -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
index 40df2e8e44309d8de832caba3a9ee686f1ce3706..485f1129e38064598a4e0d6269c35b2ceac93eb6 100644 (file)
@@ -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"