Просмотр исходного кода

doc(nix): add `nix run` to readme

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 лет назад
Родитель
Сommit
7f79f8b167
1 измененных файлов с 31 добавлено и 19 удалено
  1. 31 19
      README.md

+ 31 - 19
README.md

@@ -23,6 +23,37 @@ By deliberately making some decisions differently, eza attempts to be a more fea
 For more information, see [exa’s website](https://the.exa.website/).
 
 
+---
+
+<a id="try-it">
+<h1>Try it!</h1>
+</a>
+
+### Nix
+
+If you already have Nix setup with flake support, you can try out eza with the `nix run` command:
+
+    nix run github:cafkafk/eza
+
+Nix will built eza and run it. If you want to pass arguments this way, use e.g. `nix run github:cafkafk/eza -- -ol`.
+
+<a id="installation">
+<h1>Installation</h1>
+</a>
+
+eza is available for macOS and Linux.
+
+### Cargo
+
+If you already have a Rust environment set up, you can use the `cargo install` command:
+
+    cargo install eza
+
+Cargo will build the `eza` binary and place it in `$HOME/.cargo`.
+
+To build without Git support, run `cargo install --no-default-features eza` is also available, if the requisite dependencies are not installed.
+
+
 ---
 
 <a id="options">
@@ -94,25 +125,6 @@ Some of the options accept parameters:
 - Valid time styles are **default**, **iso**, **long-iso**, and **full-iso**.
 
 
----
-
-<a id="installation">
-<h1>Installation</h1>
-</a>
-
-eza is available for macOS and Linux.
-
-### Cargo
-
-If you already have a Rust environment set up, you can use the `cargo install` command:
-
-    cargo install eza
-
-Cargo will build the `eza` binary and place it in `$HOME/.cargo`.
-
-To build without Git support, run `cargo install --no-default-features eza` is also available, if the requisite dependencies are not installed.
-
-
 ---
 
 <a id="development">