Starship/zh: Difference between revisions
No edit summary |
Created page with "=== 使用全局配置 ===" |
||
| Line 2: | Line 2: | ||
[https://starship.rs/ Starship] 是一个快速、可自定义且极简的 shell 提示符。它使用 Rust 编写,显示当前目录、Git 状态、运行时版本等相关信息,并以极简配置适应上下文。它支持多种 shell,包括 [[Special:MyLanguage/Bash|Bash]]、[https://wiki.nixos.org/wiki/Zsh Zsh]、[https://wiki.nixos.org/wiki/Fish Fish]、PowerShell 以及其他许多 shell,并且您的配置将在所有这些 shell 中保持一致,其设计旨在提高速度和效率。 | [https://starship.rs/ Starship] 是一个快速、可自定义且极简的 shell 提示符。它使用 Rust 编写,显示当前目录、Git 状态、运行时版本等相关信息,并以极简配置适应上下文。它支持多种 shell,包括 [[Special:MyLanguage/Bash|Bash]]、[https://wiki.nixos.org/wiki/Zsh Zsh]、[https://wiki.nixos.org/wiki/Fish Fish]、PowerShell 以及其他许多 shell,并且您的配置将在所有这些 shell 中保持一致,其设计旨在提高速度和效率。 | ||
< | <span id="Installation"></span> | ||
== | == 安装 == | ||
< | <span id="Using_nix-shell"></span> | ||
=== | === 使用 nix-shell === | ||
<syntaxhighlight lang="bash" start="3"> | <syntaxhighlight lang="bash" start="3"> | ||
| Line 14: | Line 12: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
< | <span id="Using_Global_Configuration"></span> | ||
=== | === 使用全局配置 === | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||