You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add Path Separator and Path List Separator to provided template values.
This change exports a provided variable from Go which practically makes it free in terms of implementation costs.
This functionality would be implemented by hand by most people without variance when it is provided to Chezmoi by Go.
|`.chezmoi.arch`| string | Architecture, e.g. `amd64`, `arm`, etc. as returned by [runtime.GOARCH](https://pkg.go.dev/runtime?tab=doc#pkg-constants)|
8
-
|`.chezmoi.args`|[]string | The arguments passed to the `chezmoi` command, starting with the program command |
9
-
|`.chezmoi.cacheDir`| string | The cache directory |
10
-
|`.chezmoi.config`| object | The configuration, as read from the config file |
11
-
|`.chezmoi.configFile`| string | The path to the configuration file used by chezmoi |
12
-
|`.chezmoi.executable`| string | The path to the `chezmoi` executable, if available |
13
-
|`.chezmoi.fqdnHostname`| string | The fully-qualified domain name hostname of the machine chezmoi is running on |
14
-
|`.chezmoi.gid`| string | The primary group ID |
15
-
|`.chezmoi.group`| string | The group of the user running chezmoi |
16
-
|`.chezmoi.homeDir`| string | The home directory of the user running chezmoi |
17
-
|`.chezmoi.hostname`| string | The hostname of the machine chezmoi is running on, up to the first `.`|
18
-
|`.chezmoi.kernel`| string | Contains information from `/proc/sys/kernel`. Linux only, useful for detecting specific kernels (e.g. Microsoft's WSL kernel) |
19
-
|`.chezmoi.os`| string | Operating system, e.g. `darwin`, `linux`, etc. as returned by [runtime.GOOS](https://pkg.go.dev/runtime?tab=doc#pkg-constants)|
20
-
|`.chezmoi.osRelease`| string | The information from `/etc/os-release`, Linux only, run `chezmoi data` to see its output |
21
-
|`.chezmoi.sourceDir`| string | The source directory |
22
-
|`.chezmoi.sourceFile`| string | The path of the template relative to the source directory |
23
-
|`.chezmoi.targetFile`| string | The absolute path of the target file for the template |
24
-
|`.chezmoi.uid`| string | The user ID |
25
-
|`.chezmoi.username`| string | The username of the user running chezmoi |
26
-
|`.chezmoi.version.builtBy`| string | The program that built the `chezmoi` executable, if set |
27
-
|`.chezmoi.version.commit`| string | The git commit at which the `chezmoi` executable was built, if set |
28
-
|`.chezmoi.version.date`| string | The timestamp at which the `chezmoi` executable was built, if set |
29
-
|`.chezmoi.version.version`| string | The version of chezmoi |
30
-
|`.chezmoi.windowsVersion`| object | Windows version information, if running on Windows |
31
-
|`.chezmoi.workingTree`| string | The working tree of the source directory |
|`.chezmoi.arch`| string | Architecture, e.g. `amd64`, `arm`, etc. as returned by [runtime.GOARCH](https://pkg.go.dev/runtime?tab=doc#pkg-constants)|
8
+
|`.chezmoi.args`|[]string | The arguments passed to the `chezmoi` command, starting with the program command |
9
+
|`.chezmoi.cacheDir`| string | The cache directory |
10
+
|`.chezmoi.config`| object | The configuration, as read from the config file |
11
+
|`.chezmoi.configFile`| string | The path to the configuration file used by chezmoi |
12
+
|`.chezmoi.executable`| string | The path to the `chezmoi` executable, if available |
13
+
|`.chezmoi.fqdnHostname`| string | The fully-qualified domain name hostname of the machine chezmoi is running on |
14
+
|`.chezmoi.gid`| string | The primary group ID |
15
+
|`.chezmoi.group`| string | The group of the user running chezmoi |
16
+
|`.chezmoi.homeDir`| string | The home directory of the user running chezmoi |
17
+
|`.chezmoi.hostname`| string | The hostname of the machine chezmoi is running on, up to the first `.`|
18
+
|`.chezmoi.kernel`| string | Contains information from `/proc/sys/kernel`. Linux only, useful for detecting specific kernels (e.g. Microsoft's WSL kernel) |
19
+
|`.chezmoi.os`| string | Operating system, e.g. `darwin`, `linux`, etc. as returned by [runtime.GOOS](https://pkg.go.dev/runtime?tab=doc#pkg-constants)|
20
+
|`.chezmoi.osRelease`| string | The information from `/etc/os-release`, Linux only, run `chezmoi data` to see its output |
21
+
|`.chezmoi.pathListSeparator`| string | The path list separator, typically `;` on Windows and `:` on other systems. Used to separate paths in environment varialbes. ie `/bin:/sbin:/usr/bin`|
22
+
|`.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`|
23
+
|`.chezmoi.sourceDir`| string | The source directory |
24
+
|`.chezmoi.sourceFile`| string | The path of the template relative to the source directory |
25
+
|`.chezmoi.targetFile`| string | The absolute path of the target file for the template |
26
+
|`.chezmoi.uid`| string | The user ID |
27
+
|`.chezmoi.username`| string | The username of the user running chezmoi |
28
+
|`.chezmoi.version.builtBy`| string | The program that built the `chezmoi` executable, if set |
29
+
|`.chezmoi.version.commit`| string | The git commit at which the `chezmoi` executable was built, if set |
30
+
|`.chezmoi.version.date`| string | The timestamp at which the `chezmoi` executable was built, if set |
31
+
|`.chezmoi.version.version`| string | The version of chezmoi |
32
+
|`.chezmoi.windowsVersion`| object | Windows version information, if running on Windows |
33
+
|`.chezmoi.workingTree`| string | The working tree of the source directory |
32
34
33
35
`.chezmoi.windowsVersion` contains the following keys populated from the
0 commit comments