mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-14 06:54:05 -08:00
43 lines
883 B
Plaintext
43 lines
883 B
Plaintext
---
|
|
id: nix-shell
|
|
title: Nix Shell
|
|
sidebar_label: Nix Shell
|
|
---
|
|
|
|
## What
|
|
|
|
Displays the [nix shell] status if inside a nix-shell environment.
|
|
|
|
## Sample Configuration
|
|
|
|
import Config from "@site/src/components/Config.js";
|
|
|
|
<Config
|
|
data={{
|
|
type: "nix-shell",
|
|
style: "powerline",
|
|
foreground: "blue",
|
|
background: "transparent",
|
|
template: "(nix-{{ .Type }})",
|
|
}}
|
|
/>
|
|
|
|
## Template ([info][templates])
|
|
|
|
:::note default template
|
|
|
|
```template
|
|
via {{ .Type }}-shell"
|
|
```
|
|
|
|
:::
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Description |
|
|
| ------- | -------- | ----------------------------------------------------------- |
|
|
| `.Type` | `string` | the type of nix shell, can be `pure`, `impure` or `unknown` |
|
|
|
|
[nix shell]: https://nixos.org/guides/nix-pills/developing-with-nix-shell.html
|
|
[templates]: /docs/configuration/templates
|