mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-18 17:44:06 +05:30
Quicker nix shell?
This commit is contained in:
parent
95deb5b0c4
commit
3e1caa4cde
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -12,6 +12,7 @@ let
|
|||
fetch = "disfetch";
|
||||
gitfetch = "onefetch";
|
||||
"," = "comma";
|
||||
",," = "comma-shell";
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue