home/.zsh/themes/spaceship-prompt/docs/sections/line_sep.uk.md

39 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Розділювач рядків `line_sep`
The `line_sep` section is used as a line break for the prompt.
## Adding more line breaks to the prompts
You can add more line breaks to the prompt by adding more `line_sep` sections where you want. You can use `spaceship add` command for that:
```zsh title=".zshrc"
# Adds a line break after the git section
spaceship add --after git line_sep
# Adds a line break before the char section
spaceship add --before char line_sep
```
## Disabling line separator
You can avoid line breaks by setting `SPACESHIP_PROMPT_SEPARATE_LINE` to `false`.
```zsh title=".zshrc"
# Avoids rendering of the line_sep
SPACESHIP_PROMPT_SEPARATE_LINE=false
```
## Removing `line_sep` from the prompt
You can remove `line_sep` from the prompt entirely like this:
```zsh title=".zshrc"
spaceship remove line_sep
```
## Опції
| Змінна | За замовчуванням | Пояснення |
|:-------------------------------- |:----------------:| ------------------------------ |
| `SPACESHIP_PROMPT_SEPARATE_LINE` | `true` | Відображати розділювачі рядків |