Fix in_nix_shell_with_name

This commit is contained in:
Alexander Bantyev 2022-08-25 22:58:19 +04:00
parent c52bcd867c
commit 477c4116da
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -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