From c037fc986a22b0d0150a83cf5a87a6cd582763f8 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Fri, 21 Jul 2023 15:38:51 -0500 Subject: [PATCH] feat: nix-shell prompt Signed-off-by: jolheiser --- apps/nushell.nix | 1 + apps/ohmyposh/config.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/nushell.nix b/apps/nushell.nix index 99c5f26..60845ab 100644 --- a/apps/nushell.nix +++ b/apps/nushell.nix @@ -9,6 +9,7 @@ df = "duf"; du = "dust -b -d 1"; ll = "ls -al"; + nix-shell = "nix-shell --run nu"; }; extraConfig = '' use ${pkgs.nu_scripts}/share/nu_scripts/custom-completions/bitwarden-cli/bitwarden-cli-completions.nu * diff --git a/apps/ohmyposh/config.json b/apps/ohmyposh/config.json index 865c815..3ce7921 100644 --- a/apps/ohmyposh/config.json +++ b/apps/ohmyposh/config.json @@ -12,7 +12,7 @@ "display_host": false }, "style": "diamond", - "template": " {{ if .SSHSession }}\udb80\udf18 {{ end }}{{ .UserName }}@{{ .HostName }} ", + "template": " {{ if .SSHSession }}\udb80\udf18 {{ end }}{{ if .Env.IN_NIX_SHELL }}\udb84\udd05 {{ end }}{{ .UserName }}@{{ .HostName }} ", "trailing_diamond": "\ue0b0", "type": "session" },