docs(i18n): New Crowdin updates (#2108)

This commit is contained in:
Matan Kushner
2021-01-26 17:07:13 -05:00
committed by GitHub
parent 762ad12698
commit bea79619e0
53 changed files with 10051 additions and 2948 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
# Advanced Configuration
# 高级配置
`Starship 功能繁多,有时您必须在编辑 <code>starship.toml` 之外做更多工作才能实现某些效果。 此页面详细介绍了一些在 starship 中使用的高级配置技巧。
::: warning
::: 警告
本节所述的配置内容可能随 Starship 未来版本的更新而改变。
@@ -10,7 +10,7 @@
## 在 Bash 中自定义预提示和预执行命令
Bash 没有大多数其它 shell 一样的正式预执行/预命令框架。 因此,很难在 `bash` 中提供完全可自定义的 hook 机制。 然而,Starship 确实能使您有限地在提示符渲染过程中插入自己的函数执行:
Bash 没有类似大多数其它 shell 的正式预执行/预命令框架。 因此,很难在 `bash` 中提供完全可自定义的 hook 机制。 然而,Starship 确实能使您有限地在提示符渲染过程中插入自己的函数执行:
- 若要在提示符显示之前运行自定义函数,需要定义此函数,然后将函数名赋值给 `starship_reserved_user_func`。 例如,要在提示符之前绘制一枚火箭,您应该写