Nix Shell 环境状态
非官方测试版翻译
本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →
功能
当处于 nix-shell 环境中时,显示 nix shell 状态信息。
示例配置
- json
- yaml
- toml
{
"type": "nix-shell",
"style": "powerline",
"foreground": "blue",
"background": "transparent",
"template": "(-{{ .Type }})"
}
type: nix-shell
style: powerline
foreground: blue
background: transparent
template: (-{{ .Type }})
type = "nix-shell"
style = "powerline"
foreground = "blue"
background = "transparent"
template = "(-{{ .Type }})"
模板 (信息)
默认模板
via {{ .Type }}-shell"
属性
| Name | Type | Description |
|---|---|---|
.Type | string | the type of nix shell, can be pure, impure or unknown |