Quicker nix shell?

This commit is contained in:
Emmet
2024-12-28 11:35:36 -06:00
parent 95deb5b0c4
commit 3e1caa4cde
2 changed files with 9 additions and 0 deletions

View File

@ -162,6 +162,14 @@
echo "usage: comma PKGNAME... [EXECUTABLE]";
fi
'')
(pkgs.writeScriptBin "comma-shell" ''
if [ "$#" = 0 ]; then
echo "usage: comma-shell PKGNAME1 [PKGNAME2 PKGNAME3...]";
else
nix-shell -p $@
fi
'')
];
# I use zsh btw

View File

@ -12,6 +12,7 @@ let
fetch = "disfetch";
gitfetch = "onefetch";
"," = "comma";
",," = "comma-shell";
};
in
{