diff --git a/docs/sample_config/default_env.nu b/docs/sample_config/default_env.nu index 2a460f4221..367c55247e 100644 --- a/docs/sample_config/default_env.nu +++ b/docs/sample_config/default_env.nu @@ -1,7 +1,11 @@ # Nushell Environment Config File def create_left_prompt [] { - let path_segment = ($env.PWD) + let path_segment = if (is-admin) { + $"(ansi red_bold)($env.PWD)" + } else { + $"(ansi green_bold)($env.PWD)" + } $path_segment }