From 3d941845b109faaa090b8a26e0d61f1e8ff87706 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 24 Aug 2022 15:07:45 +0300 Subject: [PATCH] nix/shell/starship: add shell level --- nix/shell/prompt/starship/config.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nix/shell/prompt/starship/config.nix b/nix/shell/prompt/starship/config.nix index 811d946..f0634ea 100644 --- a/nix/shell/prompt/starship/config.nix +++ b/nix/shell/prompt/starship/config.nix @@ -10,6 +10,7 @@ "$git_state" "$git_metrics" "$git_status" + "$shlvl" "$nix_shell" "$cmd_duration" "$jobs" @@ -24,8 +25,9 @@ git_commit.commit_hash_length = 6; - directory = { - truncate_to_repo = true; - truncation_length = 6; + shlvl = { + disabled = false; + format = "[$symbol$shlvl]($style) "; + symbol = "↕️ "; }; }