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
Copy file name to clipboardExpand all lines: docs/NIC-Syntax.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ Each NIC template <span class="required">requires</span> a control file. The con
41
41
- <spanclass="optional">optional</span>
42
42
- Prompts the user for additional information, which will be stored in *variable*.
43
43
- Optionally supports the inclusion of a default value, which the user can accept by entering nothing.
44
-
- The user is given a chance to override the prompt variable with their <codeclass="highlighter-rouge">~/.nicrc</code>.
44
+
- The user is given a chance to override the prompt variable with their <codeclass="highlighter-rouge">nicrc</code>.
45
45
46
46
<codeclass="highlighter-rouge"><strong>constrain</strong> "<spanclass="required">path</span>" to <spanclass="required">constraint</span></code>
47
47
@@ -62,7 +62,7 @@ Each NIC template <span class="required">requires</span> a control file. The con
62
62
- The NIC templates that ship with Theos use the `package` constraint to avoid creating unnecessary `control` files.
63
63
64
64
`link_theos`
65
-
- Used in some templates to include an optional link to theos. Set/overridden by `link_theos` in the user's `~/.nicrc`.
65
+
- Used in some templates to include an optional link to theos. Set/overridden by `link_theos` in the user's `nicrc`.
66
66
- The NIC templates that ship with Theos use this constraint to avoid creating unnecessary `theos/` symlinks.
67
67
68
68
### Example <codeclass="highlighter-rouge">NIC/control</code>
@@ -130,7 +130,7 @@ The `NIC` object represents the current template.
130
130
- Prompt the user for additional information, attaching the user's response to the provided NIC variable.
131
131
- The default value is optional.
132
132
- If *$variable* is not specified, `NIC->prompt(...)` will return the user's response, and will not store it in the template.
133
-
- The key difference between `prompt(...)` and `NIC->prompt(...)` is that the user is given a chance to override the prompt variable with their `~/.nicrc`.
133
+
- The key difference between `prompt(...)` and `NIC->prompt(...)` is that the user is given a chance to override the prompt variable with their `nicrc`.
Copy file name to clipboardExpand all lines: docs/NIC.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,8 +97,13 @@ The templates included in this legacy templates module:
97
97
***notification_center_widget-7up**: an iOS 7 – 9 Notification Center Today widget.
98
98
***xpc_service**: a C-based [XPC](https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingXPCServices.html) service.
99
99
100
-
## .nicrc
101
-
NIC reads configuration data from `~/.nicrc`. This file uses a simple key-value format, `key = "value"`. Values must be enclosed in quotes, even if it is a number.
100
+
## nicrc
101
+
NIC configuration data can be stored in a config file to pre-fill values for templates. A simple key-value format is used: `key = "value"`. Values must be enclosed in quotes, even if it is a number.
102
+
103
+
The first matching file is sourced:
104
+
1.`$(XDG_CONFIG_HOME)/theos/nicrc`
105
+
2.`$(HOME)/.config/theos/nicrc`
106
+
3.`$(HOME)/.nicrc`
102
107
103
108
### Instance Metadata
104
109
***`package_prefix`***string*. The prefix to use by default for reverse DNS package identifiers. The default is `com.yourcompany`. For example, setting `package_prefix = "ws.hbang"` and creating a new project called "Example Instance" will make the default package identifier `ws.hbang.exampleinstance`.
0 commit comments