1
0
Fork 0

feat: nix-shell prompt

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-07-21 15:38:51 -05:00
parent c0aaf3c5e8
commit c037fc986a
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -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"
},