Skip to content

Commit

Permalink
docs: Fix type of .chezmoi.kernel and .chezmoi.osRelease variables
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Feb 22, 2024
1 parent 1abcfa5 commit 3e5f0c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/chezmoi.io/docs/reference/templates/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ chezmoi provides the following automatically-populated variables:
| `.chezmoi.group` | string | The group of the user running chezmoi |
| `.chezmoi.homeDir` | string | The home directory of the user running chezmoi |
| `.chezmoi.hostname` | string | The hostname of the machine chezmoi is running on, up to the first `.` |
| `.chezmoi.kernel` | string | Contains information from `/proc/sys/kernel`. Linux only, useful for detecting specific kernels (e.g. Microsoft's WSL kernel) |
| `.chezmoi.kernel` | object | Contains information from `/proc/sys/kernel`. Linux only, useful for detecting specific kernels (e.g. Microsoft's WSL kernel) |
| `.chezmoi.os` | string | Operating system, e.g. `darwin`, `linux`, etc. as returned by [runtime.GOOS](https://pkg.go.dev/runtime?tab=doc#pkg-constants) |
| `.chezmoi.osRelease` | string | The information from `/etc/os-release`, Linux only, run `chezmoi data` to see its output |
| `.chezmoi.osRelease` | object | The information from `/etc/os-release`, Linux only, run `chezmoi data` to see its output |
| `.chezmoi.pathListSeparator` | string | The path list separator, typically `;` on Windows and `:` on other systems. Used to separate paths in environment variables. ie `/bin:/sbin:/usr/bin` |
| `.chezmoi.pathSeparator` | string | The path separator, typically `\` on windows and `/` on unix. Used to separate files and directories in a path. ie `c:\see\dos\run` |
| `.chezmoi.sourceDir` | string | The source directory |
Expand Down

0 comments on commit 3e5f0c8

Please sign in to comment.