From 3146dabff7fedbaeffd0e781c5d75c987301524b Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Thu, 16 Oct 2025 18:14:30 +0000 Subject: [PATCH] Poor man's "nix develop" detector --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 38b1cb9..c9108c2 100644 --- a/.zshrc +++ b/.zshrc @@ -153,7 +153,7 @@ zstyle ':vcs_info:*' stagedstr '%F{green}*%f' zstyle ':vcs_info:*' unstagedstr '%F{red}*%f' zstyle ':vcs_info:git:*' formats ' (%F{cyan}%b%f%c%u)' setopt prompt_subst -PROMPT='%(?..%F{red}%?%f )[%n@%m] %3~${vcs_info_msg_0_} %# ' +PROMPT='${IN_NIX_SHELL}%(?..%F{red}%?%f )[%n@%m] %3~${vcs_info_msg_0_} %# ' # Expand aliases by the press of TAB. zstyle ':completion:*' completer _expand_alias _complete _ignored