mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-25 10:25:09 +00:00
Deployed af17bad with MkDocs version: 1.6.1
This commit is contained in:
@@ -2215,12 +2215,12 @@
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>The unshackle package folder</td>
|
||||
<td><code>.../site-packages/unshackle/unshackle.yaml</code></td>
|
||||
<td><code><clone>/unshackle/unshackle.yaml</code> (a <code>uv</code> tool install: <code>.../site-packages/unshackle/unshackle.yaml</code>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>The parent of the package folder</td>
|
||||
<td><code>.../site-packages/unshackle.yaml</code></td>
|
||||
<td><code><clone>/unshackle.yaml</code> (a <code>uv</code> tool install: <code>.../site-packages/unshackle.yaml</code>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
@@ -2229,7 +2229,12 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>The third location, your per-user config directory, is the recommended place for most installations, because it lives outside the package and survives reinstalls and upgrades. Its exact path depends on your operating system:</p>
|
||||
<p>Where the file belongs depends on how you installed unshackle:</p>
|
||||
<ul>
|
||||
<li><strong>Git clone (recommended).</strong> Keep the file at <code>unshackle/unshackle.yaml</code> inside the clone, which is location 1. <a href="../installation/#what-unshackle-setup-does"><code>unshackle setup</code></a> writes a new config there, and it stays with the clone when you update it.</li>
|
||||
<li><strong><code>uv</code> tool install.</strong> Use location 3, your per-user config directory. A <code>uv</code> tool upgrade replaces the package folder, so a file at location 1 or 2 is lost. <code>unshackle setup</code> writes a new config there.</li>
|
||||
</ul>
|
||||
<p>The path of the per-user config directory depends on your operating system:</p>
|
||||
<div class="tabbed-set tabbed-alternate" data-tabs="1:3"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><input id="__tabbed_1_2" name="__tabbed_1" type="radio" /><input id="__tabbed_1_3" name="__tabbed_1" type="radio" /><div class="tabbed-labels"><label for="__tabbed_1_1">Linux</label><label for="__tabbed_1_2">Windows</label><label for="__tabbed_1_3">macOS</label></div>
|
||||
<div class="tabbed-content">
|
||||
<div class="tabbed-block">
|
||||
@@ -2482,7 +2487,11 @@ and every available config key.</p>
|
||||
<p><strong>Show everything</strong> currently set with <code>--list</code>:</p>
|
||||
<div class="language-console highlight"><pre><span></span><code><span id="__span-12-1"><a id="__codelineno-12-1" name="__codelineno-12-1" href="#__codelineno-12-1"></a><span class="gp">$ </span>unshackle<span class="w"> </span>cfg<span class="w"> </span>--list
|
||||
</span></code></pre></div>
|
||||
<p>When it writes, <code>unshackle cfg</code> targets the config file that unshackle loaded. If none exists yet, it makes <code>unshackle.yaml</code> inside the <code>unshackle</code> package folder (location 1 above), not your OS user-config directory. To keep the config outside the package, make the file at the user-config path yourself first, then <code>unshackle cfg</code> writes to it.</p>
|
||||
<p>When it writes, <code>unshackle cfg</code> targets the config file that unshackle loaded. If none exists yet, it makes <code>unshackle.yaml</code> in the <code>unshackle</code> package folder (location 1 above):</p>
|
||||
<ul>
|
||||
<li><strong>Git clone.</strong> That is <code>unshackle/unshackle.yaml</code> in the clone, which is the correct place.</li>
|
||||
<li><strong><code>uv</code> tool install.</strong> A tool upgrade replaces the package folder and deletes that file. Run <code>unshackle setup</code> first, which writes the config to your user config directory, or make the file there yourself. Then <code>unshackle cfg</code> writes to it.</li>
|
||||
</ul>
|
||||
<div class="admonition warning">
|
||||
<p class="admonition-title">Editing with <code>cfg</code> strips comments</p>
|
||||
<p>Because <code>unshackle cfg</code> rewrites the whole file when it saves, a write removes any comments in <code>unshackle.yaml</code>. If you keep important notes as comments, edit the file by hand instead, or keep those notes elsewhere.</p>
|
||||
|
||||
Reference in New Issue
Block a user