Changeset View
Changeset View
Standalone View
Standalone View
docs/options.md
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | |||||
62 | by the user if they have write access to the containing directory or can modify | 62 | by the user if they have write access to the containing directory or can modify | ||
63 | environment variables (and `XDG_CONFIG_HOME` in particular). | 63 | environment variables (and `XDG_CONFIG_HOME` in particular). | ||
64 | 64 | | |||
65 | 65 | | |||
66 | 66 | | |||
67 | Shell Expansion | 67 | Shell Expansion | ||
68 | --------------- | 68 | --------------- | ||
69 | 69 | | |||
70 | If an entry is marked with `$e`, environment variables and shell commands will | 70 | If an entry is marked with `$e`, environment variables and shell commands will | ||
kossebau: "and shell commands" to be dropped here no? | |||||
71 | be expanded. | 71 | be expanded. | ||
72 | 72 | | |||
73 | Name[$e]=$USER | 73 | Name[$e]=$USER | ||
74 | Host[$e]=$(hostname) | | |||
75 | 74 | | |||
76 | When the "Name" entry is read `$USER` will be replaced with the value of the | 75 | When the "Name" entry is read `$USER` will be replaced with the value of the | ||
77 | `$USER` environment variable, and `$(hostname)` will be replaced with the output | 76 | `$USER` environment variable. | ||
78 | of the `hostname` command. | | |||
79 | 77 | | |||
80 | Note that the application will replace `$USER` and `$(hostname)` with their | 78 | Note that the application will replace `$USER` with their | ||
Grammar suggestion: Note that the application will replace $USER with its expanded values after saving. mdawson: Grammar suggestion: Note that the application will replace `$USER` with its expanded values… | |||||
81 | respective expanded values after saving. To prevent this combine the `$e` option | 79 | respective expanded values after saving. To prevent this combine the `$e` option | ||
82 | with `$i` (immmutable) option. For example: | 80 | with `$i` (immmutable) option. For example: | ||
83 | 81 | | |||
84 | Name[$ei]=$USER | 82 | Name[$ei]=$USER | ||
85 | 83 | | |||
86 | This will make that the "Name" entry will always return the value of the `$USER` | 84 | This will make that the "Name" entry will always return the value of the `$USER` | ||
87 | environment variable. The user will not be able to change this entry. | 85 | environment variable. The user will not be able to change this entry. | ||
88 | 86 | | |||
Show All 11 Lines |
"and shell commands" to be dropped here no?