From fa5b760d9a7ad7305ca78f5d2566e58f5b5edba9 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Sun, 10 Jan 2021 14:10:31 -0500 Subject: [PATCH] nix: improve starship config --- .config/nixpkgs/home.nix | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.config/nixpkgs/home.nix b/.config/nixpkgs/home.nix index 8e009c4..fccc9b8 100644 --- a/.config/nixpkgs/home.nix +++ b/.config/nixpkgs/home.nix @@ -93,24 +93,25 @@ }; starship = { + enable = true; + enableZshIntegration = true; + settings = { add_newline = false; - error_symbol = "[✖](bold red) "; - enableZshIntegration = true; - initExtra = '' - [gcloud] - disabled = true + gcloud = { + disabled = true; + }; + scan_timeout = 10; + character = { + error_symbol = "[✖](bold red)"; + }; - [time] - time_format = "%T" - format = "$time($style) " - style = "bright-white" - disabled = false - - [directory] - truncation_length = 5 - format = "[$path]($style)[$lock_symbol]($lock_style) " - ''; + time = { + time_format = "%T"; + format = "$time($style) "; + style = "bright-white"; + disabled = false; + }; }; }; @@ -137,7 +138,6 @@ export LANG=en_US.UTF-8 eval "$(direnv hook zsh)" eval "$(_RFD_COMPLETE=source_zsh rfd)" - eval "$(starship init zsh)" eval "$(jira --completion-script-zsh)" setopt noincappendhistory pfetch