mirror of
https://github.com/starship/starship.git
synced 2025-03-13 06:49:28 +01:00
New translations readme.md (Chinese Simplified)
This commit is contained in:
parent
68f7a581af
commit
1d32d1cc70
@ -249,7 +249,7 @@ mustard = '#af8700'
|
||||
```toml
|
||||
format = '$all'
|
||||
|
||||
# 相当于
|
||||
# Which is equivalent to
|
||||
format = """
|
||||
$username\
|
||||
$hostname\
|
||||
@ -339,6 +339,7 @@ $time\
|
||||
$status\
|
||||
$os\
|
||||
$container\
|
||||
$netns\
|
||||
$shell\
|
||||
$character"""
|
||||
```
|
||||
@ -2881,6 +2882,37 @@ format = '[$symbol]($style)'
|
||||
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
|
||||
|
||||
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). 默认情况下,此组件将在满足以下任意条件时显示:
|
||||
|
Loading…
Reference in New Issue
Block a user