summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAppleTheGolden <scotsbox@protonmail.com>2019-12-09 18:59:02 +0100
committerMatan Kushner <hello@matchai.me>2019-12-09 12:59:02 -0500
commit3c835ba34bb98dff237d04abefc228600df730d0 (patch)
tree0879f124141b83516a7711eac2a7ca4392ad971b /docs
parent60a131952424ba9682e49aae701b73ce8f487d2e (diff)
fix: Truncate long paths in conda environment names (#694)
Environment names created via conda create -p [path] tend to be too long for comfort, so this truncates them.
Diffstat (limited to 'docs')
-rw-r--r--docs/config/README.md18
1 files changed, 12 insertions, 6 deletions
diff --git a/docs/config/README.md b/docs/config/README.md
index 868482c39..03ce67f79 100644
--- a/docs/config/README.md
+++ b/docs/config/README.md
@@ -289,15 +289,21 @@ prefix = "underwent "
## Conda
The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set.
-Note: This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`
+
+::: tip
+
+This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`.
+
+:::
### Options
-| Variable | Default | Description |
-| ---------- | -------------- | -------------------------------------------- |
-| `symbol` | `"C "` | The symbol used before the environment name. |
-| `style` | `"bold green"` | The style for the module. |
-| `disabled` | `false` | Disables the `conda` module. |
+| Variable | Default | Description |
+| ------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `truncation_length` | `1` | The number of directories the environment path should be truncated to, if the environment was created via `conda create -p [path]`. `0` means no truncation. Also see the [`directory`](#directory) module. |
+| `symbol` | `"C "` | The symbol used before the environment name. |
+| `style` | `"bold green"` | The style for the module. |
+| `disabled` | `false` | Disables the `conda` module. |
### Example