run nix-shell with fish and set name in starship

This commit is contained in:
Noah Masur 2022-08-19 19:09:42 -06:00
parent b3bcd89b7e
commit 82e04dcdb1
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
programs.fish = { programs.fish = {
shellAbbrs = { shellAbbrs = {
n = "nix"; n = "nix";
ns = "nix-shell -p"; ns = "nix-shell --run fish -p";
nsr = "nix-shell-run"; nsr = "nix-shell-run";
nps = "nix repl '<nixpkgs>'"; nps = "nix repl '<nixpkgs>'";
nixo = "man configuration.nix"; nixo = "man configuration.nix";

View File

@ -48,7 +48,7 @@
style = "red"; style = "red";
}; };
nix_shell = { nix_shell = {
format = "[$symbol]($style)"; format = "[$symbol $name]($style)";
symbol = ""; symbol = "";
}; };
python = { format = "[\${version}\\(\${virtualenv}\\)]($style)"; }; python = { format = "[\${version}\\(\${virtualenv}\\)]($style)"; };