1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

docs: replace console language with shell

This commit is contained in:
Viktor Kronvall 2023-12-02 09:19:09 +09:00
parent 67b797a377
commit eff22a27e2
18 changed files with 36 additions and 36 deletions

View file

@ -17,13 +17,13 @@ the `home-manager` command use it by either
1. overriding the default path by using the `-I` command line option:
``` console
``` shell
$ home-manager -I home-manager=$HOME/devel/home-manager
```
or, if using [flakes](#sec-flakes-standalone):
``` console
``` shell
$ home-manager --override-input home-manager ~/devel/home-manager
```

View file

@ -82,7 +82,7 @@ descriptions and the documentation of Home Manager can be generated and
opened by typing the following in a shell within a clone of the Home
Manager Git repository:
``` console
``` shell
$ nix-build -A docs.html
$ xdg-open ./result/share/doc/home-manager/index.html
```
@ -90,7 +90,7 @@ $ xdg-open ./result/share/doc/home-manager/index.html
When you have made changes to a module, it is a good idea to check that
the man page version of the module options looks good:
``` console
``` shell
$ nix-build -A docs.manPages
$ man ./result/share/man/man5/home-configuration.nix.5.gz
```

View file

@ -14,7 +14,7 @@ but you should follow some basic guidelines:
as time zone. For example, \"2017-09-13T17:10:14+00:00\". A suitable
timestamp can be produced by the command
``` console
``` shell
$ date --iso-8601=second --universal
```

View file

@ -12,20 +12,20 @@ functions available in test scripts, you can look at NMT's
The full Home Manager test suite can be run by executing
``` console
``` shell
$ nix-shell --pure tests -A run.all
```
in the project root. List all test cases through
``` console
``` shell
$ nix-shell --pure tests -A list
```
and run an individual test, for example `alacritty-empty-settings`,
through
``` console
``` shell
$ nix-shell --pure tests -A run.alacritty-empty-settings
```
@ -33,6 +33,6 @@ However, those invocations will impurely source the system's nixpkgs,
and may cause failures. To run against the nixpkgs from the flake.lock,
use instead e.g.
``` console
``` shell
$ nix develop --ignore-environment .#all
```