From 477c4116da1ae8d79862970553a7929ebcdec319 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Thu, 25 Aug 2022 22:58:19 +0400 Subject: [PATCH] Fix in_nix_shell_with_name --- profiles/workspace/zsh/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/workspace/zsh/p10k.zsh b/profiles/workspace/zsh/p10k.zsh index 77e3465..272280e 100644 --- a/profiles/workspace/zsh/p10k.zsh +++ b/profiles/workspace/zsh/p10k.zsh @@ -1672,7 +1672,7 @@ } function prompt_nix_shell_with_name() { - if [[ -n "${IN_NIX_SHELL-:}" ]]; then + if [[ -n "${IN_NIX_SHELL-}" ]]; then if [[ "${name-nix-shell}" != nix-shell ]]; then p10k segment -b 4 -f 15 -r -i NIX_SHELL_ICON -t "$name" else