mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
Couldn't get comma to work so I wrote my own!
This commit is contained in:
parent
bf5159b8e7
commit
3c92330eaf
|
@ -93,6 +93,18 @@
|
||||||
cryptsetup
|
cryptsetup
|
||||||
home-manager
|
home-manager
|
||||||
wpa_supplicant
|
wpa_supplicant
|
||||||
|
(pkgs.writeScriptBin "comma" ''
|
||||||
|
if [ "$#" = 0 ]; then
|
||||||
|
echo "usage: comma PKGNAME... [EXECUTABLE]";
|
||||||
|
elif [ "$#" = 1 ]; then
|
||||||
|
nix-shell -p $1 --run $1;
|
||||||
|
elif [ "$#" = 2 ]; then
|
||||||
|
nix-shell -p $1 --run $2;
|
||||||
|
else
|
||||||
|
echo "error: too many arguments";
|
||||||
|
echo "usage: comma PKGNAME... [EXECUTABLE]";
|
||||||
|
fi
|
||||||
|
'')
|
||||||
];
|
];
|
||||||
|
|
||||||
# I use zsh btw
|
# I use zsh btw
|
||||||
|
|
|
@ -11,6 +11,7 @@ let
|
||||||
neofetch = "disfetch";
|
neofetch = "disfetch";
|
||||||
fetch = "disfetch";
|
fetch = "disfetch";
|
||||||
gitfetch = "onefetch";
|
gitfetch = "onefetch";
|
||||||
|
"," = "comma";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue