Starship/zh: Difference between revisions

Ardenet (talk | contribs)
Created page with "=== 使用全局配置 ==="
Ardenet (talk | contribs)
Created page with "=== 进阶 ==="
Tags: Mobile edit Mobile web edit
 
(5 intermediate revisions by the same user not shown)
Line 21: Line 21:
</syntaxhighlight>
</syntaxhighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
修改配置后,运行以下命令应用更改:
After modifying your configuration, apply the changes by running:
</div>


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 38: Line 36:
</syntaxhighlight>
</syntaxhighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
配置更新完成后,运行以下命令应用更改:
After updating your configuration, apply the changes by running:
</div>


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 46: Line 42:
</syntaxhighlight>
</syntaxhighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Configuration"></span>
== Configuration ==
== 配置 ==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Basic"></span>
=== Basic ===
=== 基础 ===
</div>


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 80: Line 74:
如果您使用我刚才提到的其他 shell,请前往此 [https://starship.rs/guide/#step-2-set-up-your-shell-to-use-starship 页面]
如果您使用我刚才提到的其他 shell,请前往此 [https://starship.rs/guide/#step-2-set-up-your-shell-to-use-starship 页面]


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Advanced"></span>
=== Advanced ===
=== 进阶 ===
</div>


你可以使用 Nix 自定义 Starship(这里有一个代码片段以供理解)
你可以使用 Nix 自定义 Starship(这里有一个代码片段以供理解)