2021-01-26 22:07:13 +00:00
# 高级配置
2019-10-04 08:57:43 +00:00
2020-09-30 20:26:13 +00:00
`Starship 功能繁多,有时您必须在编辑 <code>starship.toml` 之外做更多工作才能实现某些效果。 此页面详细介绍了一些在 starship 中使用的高级配置技巧。
2019-10-04 08:57:43 +00:00
docs(i18n): New Crowdin updates (#2362)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Portuguese)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Russian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Chinese Simplified)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Korean)
* New translations README.md (Korean)
* New translations README.md (Korean)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (French)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Polish)
* New translations README.md (Spanish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (French)
* New translations README.md (Arabic)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Russian)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (German)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Portuguese)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Russian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Italian)
* New translations README.md (Italian)
2021-03-15 17:18:42 +00:00
::: warning
2019-10-04 08:57:43 +00:00
2019-10-21 14:42:08 +00:00
本节所述的配置内容可能随 Starship 未来版本的更新而改变。
2019-10-04 08:57:43 +00:00
:::
2020-02-04 17:11:36 +00:00
## 在 Bash 中自定义预提示和预执行命令
2019-10-04 08:57:43 +00:00
2021-01-26 22:07:13 +00:00
Bash 并没有类似大多数其它 shell 的正式预执行/预命令框架。 因此,很难在 `bash` 中提供完全可自定义的 hook 机制。 然而, Starship 确实能使您有限地在提示符渲染过程中插入自己的函数执行:
2019-10-04 08:57:43 +00:00
2020-02-04 17:11:36 +00:00
- 若要在提示符显示之前运行自定义函数,需要定义此函数,然后将函数名赋值给 `starship_reserved_user_func` 。 例如,要在提示符之前绘制一枚火箭,您应该写
2019-10-04 08:57:43 +00:00
```bash
function blastoff(){
echo "🚀"
}
starship_precmd_user_func="blastoff"
```
docs(i18n): new Crowdin updates (#3085)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Arabic)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Russian)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Indonesian)
* New translations README.md (French)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (Spanish)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (Italian)
* New translations README.md (Chinese Traditional)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
2021-11-07 18:07:39 +00:00
- 要在一个命令运行前运行自定义函数,您可以使用 [`DEBUG` trap 机制 ](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/ )。 然而,您**必须**在捕捉 DEBUG 信号*之前*启动 Starship! Starship 可以保留 DEBUG trap 的值,但如果该 trap 在 starship 启动后被覆盖,一些功能将会被破坏。
2019-10-04 08:57:43 +00:00
```bash
function blastoff(){
echo "🚀"
}
2020-02-04 17:11:36 +00:00
trap blastoff DEBUG # 启动 starship *之前* 设置 DEBUG trap
2019-10-04 08:57:43 +00:00
eval $(starship init bash)
```
docs(i18n): new Crowdin updates (#3085)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Arabic)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Russian)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Indonesian)
* New translations README.md (French)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (Spanish)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (Italian)
* New translations README.md (Chinese Traditional)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
2021-11-07 18:07:39 +00:00
## Custom pre-prompt and pre-execution Commands in PowerShell
2019-10-04 08:57:43 +00:00
docs(i18n): new Crowdin updates (#3085)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Arabic)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Russian)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Indonesian)
* New translations README.md (French)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (Spanish)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (Italian)
* New translations README.md (Chinese Traditional)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
2021-11-07 18:07:39 +00:00
PowerShell does not have a formal preexec/precmd framework like most other shells. Because of this, it is difficult to provide fully customizable hooks in `powershell` . 然而, Starship 确实能使您有限地在提示符渲染过程中插入自己的函数执行:
2019-10-04 08:57:43 +00:00
docs(i18n): new Crowdin updates (#3085)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Arabic)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Russian)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Indonesian)
* New translations README.md (French)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (Spanish)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (Italian)
* New translations README.md (Chinese Traditional)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
2021-11-07 18:07:39 +00:00
Create a function named `Invoke-Starship-PreCommand`
```powershell
function Invoke-Starship-PreCommand {
$host.ui.Write("🚀")
}
```
2021-12-20 21:05:59 +00:00
## 更改窗口标题
docs(i18n): new Crowdin updates (#3085)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Arabic)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Russian)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Indonesian)
* New translations README.md (French)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (Spanish)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (Italian)
* New translations README.md (Chinese Traditional)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
2021-11-07 18:07:39 +00:00
2021-12-20 21:05:59 +00:00
一些 shell 会自动更改您的窗口标题(比如改成您的工作目录)。 Fish 甚至默认会执行此功能。 Starship 没有实现此功能,但将这个功能添加到 `bash` 或 `zsh` 是相当简单的。
docs(i18n): new Crowdin updates (#3085)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Arabic)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Russian)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Indonesian)
* New translations README.md (French)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (Spanish)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (Italian)
* New translations README.md (Chinese Traditional)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
2021-11-07 18:07:39 +00:00
2021-12-20 21:05:59 +00:00
首先,定义窗口标题更改函数(在 bash 和 zsh 中相同):
2019-10-04 08:57:43 +00:00
```bash
function set_win_title(){
echo -ne "\033]0; YOUR_WINDOW_TITLE_HERE \007"
}
```
2021-12-20 21:05:59 +00:00
您可以使用变量来定制标题(常用的有 `$USER` , `$HOSTNAME` 和 `$PWD` )。
2019-10-04 08:57:43 +00:00
2021-12-20 21:05:59 +00:00
在 `bash` 中,设置此函数为 starship 预执行函数:
2019-10-04 08:57:43 +00:00
```bash
starship_precmd_user_func="set_win_title"
```
2021-12-20 21:05:59 +00:00
在 `zsh` 中,将此函数添加到 `reservmd_functions` 列表:
2019-10-04 08:57:43 +00:00
```bash
precmd_functions+=(set_win_title)
```
2021-12-20 21:05:59 +00:00
如果您对产生的效果感到满意,请将以上代码添加到您的 shell 配置文件(`~/.bashrc` 或 `~/zsrhc` )中以使其永久化。
2020-07-23 21:07:10 +00:00
2021-12-20 21:05:59 +00:00
例如,如果您想要在终端标签标题中显示当前目录, 将以下代码添加到您的 `~/.ashrc` 或 `~/.zshrc` :
2020-07-23 21:07:10 +00:00
```bash
function set_win_title(){
docs(i18n): New Crowdin updates (#2469)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Portuguese)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Russian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (French)
* New translations README.md (German)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Russian)
* New translations README.md (Arabic)
* New translations README.md (Turkish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (Italian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (German)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Arabic)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Russian)
* New translations README.md (Italian)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Russian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Arabic)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Italian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Russian)
* New translations README.md (Vietnamese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Korean)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
2021-04-05 14:55:57 +00:00
echo -ne "\033]0; $(basename "$PWD") \007"
2020-07-23 21:07:10 +00:00
}
starship_precmd_user_func="set_win_title"
```
2019-10-04 08:57:43 +00:00
docs(i18n): new Crowdin updates (#3085)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Arabic)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Russian)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (German)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (German)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Indonesian)
* New translations README.md (French)
* New translations README.md (Russian)
* New translations README.md (Indonesian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (Spanish)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (Japanese)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (Italian)
* New translations README.md (Chinese Traditional)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Indonesian)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Korean)
* New translations README.md (Russian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Portuguese)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Indonesian)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
2021-11-07 18:07:39 +00:00
You can also set a similar output with PowerShell by creating a function named `Invoke-Starship-PreCommand` .
```powershell
# edit $PROFILE
function Invoke-Starship-PreCommand {
$host.ui.Write("`e]0; PS> $env:USERNAME@$env:COMPUTERNAME`: $pwd `a")
}
Invoke-Expression (& starship init powershell)
```
2021-12-20 21:05:59 +00:00
## 启用右侧提示
2021-09-21 13:36:29 +00:00
2021-12-20 21:05:59 +00:00
一些 Shell 支持右侧提示, 它与输入区渲染在同一行。 Starship 可以设置右侧提示的内容,使用 `right_format` 选项。 Any module that can be used in `format` is also supported in `right_format` . The `$all` variable will only contain modules not explicitly used in either `format` or `right_format` .
2021-09-21 13:36:29 +00:00
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module ](/config/#fill ).
`right_format` is currently supported for the following shells: elvish, fish, zsh.
### 示例
```toml
# ~/.config/starship.toml
# A minimal left prompt
format = """$character"""
# move the rest of the prompt to the right
right_format = """$all"""
```
Produces a prompt like the following:
```
▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
```
2019-10-21 14:42:08 +00:00
## 样式设定
2019-10-04 08:57:43 +00:00
2021-12-20 21:05:59 +00:00
样式字符串是用空格分隔的单词列表。 其中单词不是大小写敏感的(例如 `bold` 和 `BoLd` 被视为同一字符串)。 每个单词可以是以下之一:
2019-10-04 08:57:43 +00:00
- `bold`
docs(i18n): new Crowdin updates (#2884)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Simplified)
* New translations README.md (Russian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Italian)
* New translations README.md (Chinese Traditional)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (French)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Japanese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Traditional)
* New translations README.md (Korean)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Polish)
* New translations README.md (French)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Polish)
* New translations README.md (French)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Polish)
* New translations README.md (French)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Russian)
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (French)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Polish)
* New translations README.md (Spanish)
* New translations README.md (Dutch)
* New translations README.md (Korean)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Dutch)
* New translations README.md (Polish)
* New translations README.md (Portuguese)
* New translations README.md (Russian)
* New translations README.md (Turkish)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Traditional)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Turkish)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Turkish)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Turkish)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Korean)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Polish)
* New translations README.md (French)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Korean)
* New translations README.md (Portuguese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Polish)
* New translations README.md (French)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Italian)
2021-08-14 13:24:51 +00:00
- `italic`
2019-10-04 08:57:43 +00:00
- `underline`
- `dimmed`
docs(i18n): New Crowdin updates (#2564)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Spanish)
* New translations README.md (Japanese)
* New translations README.md (Spanish)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (German)
* New translations README.md (French)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Japanese)
* New translations README.md (Italian)
* New translations README.md (German)
* New translations README.md (Portuguese)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Russian)
* New translations README.md (Chinese Simplified)
* New translations README.md (Turkish)
* New translations README.md (Arabic)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (French)
* New translations README.md (Spanish)
* New translations README.md (Arabic)
* New translations README.md (Arabic)
* New translations README.md (German)
* New translations README.md (German)
* New translations README.md (Italian)
* New translations README.md (Italian)
* New translations README.md (Japanese)
* New translations README.md (Japanese)
* New translations README.md (Korean)
* New translations README.md (Portuguese)
* New translations README.md (Turkish)
* New translations README.md (Turkish)
* New translations README.md (Russian)
* New translations README.md (Russian)
* New translations README.md (Portuguese)
* New translations README.md (Polish)
* New translations README.md (Polish)
* New translations README.md (Dutch)
* New translations README.md (Dutch)
* New translations README.md (Spanish)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (Korean)
* New translations README.md (Vietnamese)
* New translations README.md (Chinese Traditional)
* New translations README.md (Vietnamese)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Portuguese, Brazilian)
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Sorani (Kurdish))
* New translations README.md (Chinese Traditional)
* New translations README.md (Chinese Simplified)
* New translations README.md (Chinese Simplified)
* New translations README.md (French)
* New translations README.md (French)
* New translations README.md (French)
2021-04-22 21:12:09 +00:00
- `inverted`
2019-10-04 08:57:43 +00:00
- `bg:<color>`
- `fg:<color>`
- `<color>`
- `none`
2021-12-20 21:05:59 +00:00
`<color>` 是颜色说明符(下面解释)。 `fg:<color>` and `<color>` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. 字符串中的单词顺序不影响显示结果。
2019-10-04 08:57:43 +00:00
2021-12-20 21:05:59 +00:00
The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red` . 未来可能会将 `none` 与其它标识符一起使用视为一种错误。
2019-10-04 08:57:43 +00:00
2021-12-20 21:05:59 +00:00
颜色说明符可以是以下内容之一:
2019-10-04 08:57:43 +00:00
2020-02-04 17:11:36 +00:00
- 标准终端颜色之一:`black`, `red`, `green`, `blue`, `yellow`, `purple`, `cyan`, `white`。 您可以使用可选前缀 `bright-` 来获取明亮版本的颜色(例如,`bright-white`)。
- 一个 `#` 后跟一个六位十六进制数。 这将指定一个 [十六进制 RGB 颜色代码 ](https://www.w3schools.com/colors/colors_hexadecimal.asp )。
- 0-255 之间的数字。 这将指定一个 [8 位 ANSI 颜色码 ](https://i.stack.imgur.com/KTSQa.png )。
2019-10-04 08:57:43 +00:00
2021-12-20 21:05:59 +00:00
如果为文本/背景指定了多个颜色,字符串中最后指定的颜色将具有最高优先级。