From c85e6e3878aabc145b1dad6a855cbb4f167166ce Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Thu, 17 Aug 2023 23:39:58 +0800 Subject: [PATCH] polish: the new cli --- docs/other-usage-of-flakes/the-new-cli.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/other-usage-of-flakes/the-new-cli.md b/docs/other-usage-of-flakes/the-new-cli.md index a712082..e32de95 100644 --- a/docs/other-usage-of-flakes/the-new-cli.md +++ b/docs/other-usage-of-flakes/the-new-cli.md @@ -62,13 +62,13 @@ echo "Hello Nix" | nix run "github:NixOS/nixpkgs/nixos-unstable#ponysay" ## Common Use Cases for `nix run` and `nix shell` -These commands are commonly used for running temporary commands. For example, if I want to clone my configuration repository using Git on a new NixOS host without Git installed, I can use the following command: +These commands are commonly used for running programs temporarily. For example, if I want to clone my configuration repository using Git on a new NixOS host without Git installed, I can use the following command: ```bash nix run nixpkgs#git clone git@github.com:ryan4yin/nix-config.git ``` -Alternatively, you can use the following command: +Alternatively, I can use `nix shell` to enter an environment with Git and then run the `git clone` command: ```bash nix shell nixpkgs#git