Skip to content

Commit

Permalink
docs: add instructions for installing with nix (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
hallettj committed Feb 25, 2024
1 parent 80d30c2 commit d183425
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ patch step can be disabled with the `--no-update-working-tree` option.

## How to install

### Install with Nix

Install via the CLI:

$ nix profile add github:hallettj/git-format-staged

Or add to your flake imports, and use the `default` package output.

### Install with NPM

Requires Python version 3 or 2.7.

Install as a development dependency in a project that uses npm packages:
Expand All @@ -45,7 +55,11 @@ Or install globally:

$ npm install --global git-format-staged

If you do not use npm you can copy the
### Or just copy the script

Requires Python version 3 or 2.7.

If you do not use the above methods you can copy the
[`git-format-staged`](./git-format-staged) script from this repository and
place it in your executable path. The script is MIT-licensed - so you can check
the script into version control in your own open source project if you wish.
Expand Down

0 comments on commit d183425

Please sign in to comment.