summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.dev>2024-04-15 00:15:14 +0900
committerMatan Kushner <hello@matchai.dev>2024-04-15 00:15:14 +0900
commit2b9006de60bba74b52493e9e2571e20bf9c6d8a3 (patch)
tree9edc614bf8acf038741bbd99f5d41b81cefadd38
parent6bb787c006a9b5b81228a0a38917bd4782f6c8f0 (diff)
New translations readme.md (Chinese Simplified)
-rw-r--r--docs/zh-CN/advanced-config/README.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/zh-CN/advanced-config/README.md b/docs/zh-CN/advanced-config/README.md
index 2cdf93b12..400363f8c 100644
--- a/docs/zh-CN/advanced-config/README.md
+++ b/docs/zh-CN/advanced-config/README.md
@@ -84,20 +84,20 @@ enable_transience
The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework at v0.4 or higher allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=<value>`:
-The \<value\> here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+The \<value\> here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and the option `prompt_ps1_transient` has a non-empty \<value\>, the prompt specified by `PS1` is erased on leaving the current command line. If \<value\> contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in \<value\> and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
-Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+Make the following changes to your `~/.blerc` (or in `~/.config/blesh/init.sh`) to customize what gets displayed on the left and on the right:
- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
```bash
-bleopt prompt_ps1_final="$(starship module character)"
+bleopt prompt_ps1_final='$(starship module character)'
```
- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. 例如,要在这里显示 最后一个命令开始的时间,您需要如下操作:
```bash
-bleopt prompt_rps1_final="$(starship module time)"
+bleopt prompt_rps1_final='$(starship module time)'
```
## 在 Cmd 中自定义提示符显示前和执行前的命令
@@ -266,7 +266,7 @@ right_format = """$all"""
```toml
# ~/.config/starship.toml
-# A continuation prompt that displays two filled in arrows
+# A continuation prompt that displays two filled-in arrows
continuation_prompt = '▶▶ '
```
@@ -301,6 +301,6 @@ continuation_prompt = '▶▶ '
并非每种类型的字符串都会被每个终端正确显示。 特别地,以下是已知的几种情况:
-- 许多终端默认禁用对 `blink` 的支持
+- Many terminals disable support for `blink` by default.
- [iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564) 不支持 `hidden`
-- macOS 的默认终端不支持 `strikethrough`
+- `strikethrough` is not supported by the default macOS Terminal.app.