comma/README.md

33 lines
668 B
Markdown
Raw Normal View History

2022-04-17 22:36:31 +03:00
# comma
2020-04-29 01:05:04 +03:00
Comma runs software without installing it.
2022-04-17 22:36:31 +03:00
Basically it just wraps together `nix shell -c` and `nix-index`. You stick a `,` in front of a command to
2020-04-29 01:05:04 +03:00
run it from whatever location it happens to occupy in `nixpkgs` without really thinking about it.
## Installation
2023-07-07 19:42:46 +03:00
comma is in nixpkgs so you can install it just like any other package.
2020-04-29 01:05:04 +03:00
2023-07-07 19:42:46 +03:00
either install it in your nix environment
2020-04-29 01:05:04 +03:00
2022-04-17 22:36:31 +03:00
```bash
2023-07-14 21:17:04 +03:00
nix-env -f '<nixpkgs>' -iA comma
2022-04-19 02:11:48 +03:00
```
2023-07-07 19:42:46 +03:00
or add this snippet to your NixOS configuration.
2023-06-06 21:57:39 +03:00
```nix
2023-07-07 19:42:46 +03:00
environment.systemPackages = with pkgs; [ comma ];
2023-06-06 21:57:39 +03:00
```
2022-04-17 22:36:31 +03:00
## Usage
2020-04-29 17:28:09 +03:00
2020-04-29 01:05:04 +03:00
```bash
, cowsay neato
```
## Prebuilt index
https://github.com/Mic92/nix-index-database