mirror of
https://github.com/starship/starship.git
synced 2025-03-16 00:08:58 +01:00
New translations readme.md (Chinese Simplified)
This commit is contained in:
parent
68f7a581af
commit
1d32d1cc70
@ -249,7 +249,7 @@ mustard = '#af8700'
|
|||||||
```toml
|
```toml
|
||||||
format = '$all'
|
format = '$all'
|
||||||
|
|
||||||
# 相当于
|
# Which is equivalent to
|
||||||
format = """
|
format = """
|
||||||
$username\
|
$username\
|
||||||
$hostname\
|
$hostname\
|
||||||
@ -339,6 +339,7 @@ $time\
|
|||||||
$status\
|
$status\
|
||||||
$os\
|
$os\
|
||||||
$container\
|
$container\
|
||||||
|
$netns\
|
||||||
$shell\
|
$shell\
|
||||||
$character"""
|
$character"""
|
||||||
```
|
```
|
||||||
@ -2881,6 +2882,37 @@ format = '[$symbol]($style)'
|
|||||||
style = 'bold purple'
|
style = 'bold purple'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Network Namespace
|
||||||
|
|
||||||
|
The `netns` module shows the current network namespace. This uses `ip netns identify` to get the network namespace, so only network namespaces mounted at `/var/run/netns` will be detected.
|
||||||
|
|
||||||
|
### 配置项
|
||||||
|
|
||||||
|
| 选项 | 默认值 | 描述 |
|
||||||
|
| ---------- | --------------------------------- | ----------------------------------------------------------------- |
|
||||||
|
| `format` | `'[$symbol \[$name\]]($style)'` | 组件格式化模板。 |
|
||||||
|
| `symbol` | `'🛜 '` | The symbol used before the network namespace (defaults to empty). |
|
||||||
|
| `style` | `'blue bold dimmed'` | 此组件的样式。 |
|
||||||
|
| `disabled` | `false` | Disables the `netns` module. |
|
||||||
|
|
||||||
|
### 变量
|
||||||
|
|
||||||
|
| 字段 | 示例 | 描述 |
|
||||||
|
| --------- | ---------- | ----------------------------------------- |
|
||||||
|
| name | `my-netns` | The name of the current network namespace |
|
||||||
|
| symbol | | `symbol`对应值 |
|
||||||
|
| style\* | | `style`对应值 |
|
||||||
|
|
||||||
|
### 示例
|
||||||
|
|
||||||
|
```toml
|
||||||
|
# ~/.config/starship.toml
|
||||||
|
|
||||||
|
[netns]
|
||||||
|
style = 'bold yellow'
|
||||||
|
symbol = '🌐 '
|
||||||
|
```
|
||||||
|
|
||||||
## Nim
|
## Nim
|
||||||
|
|
||||||
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). 默认情况下,此组件将在满足以下任意条件时显示:
|
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). 默认情况下,此组件将在满足以下任意条件时显示:
|
||||||
|
Loading…
Reference in New Issue
Block a user