This section shows the $debian_chroot
indicator, when in a chroot.
You need to source this plugin somewhere in your dotfiles. Here's how to do it with some popular tools:
Execute this command to clone this repo into Oh-My-Zsh plugin's folder:
git clone https://github.com/pipoprods/spaceship-debian-chroot.git $ZSH_CUSTOM/plugins/spaceship-debian-chroot
Include spaceship-section
in Oh-My-Zsh plugins list:
plugins=($plugins spaceship-section)
zplug "pipoprods/spaceship-debian-chroot"
antigen bundle "pipoprods/spaceship-debian-chroot"
antibody bundle "pipoprods/spaceship-debian-chroot"
zinit light "pipoprods/spaceship-debian-chroot"
zgen load "pipoprods/spaceship-debian-chroot"
[plugins.spaceship-debian-chroot]
github = "pipoprods/spaceship-debian-chroot"
If none of the above methods works for you, you can install Spaceship manually.
- Clone this repo somewhere, for example to
$HOME/.zsh/spaceship-debian-chroot
. - Source this section in your
~/.zshrc
.
mkdir -p "$HOME/.zsh"
git clone --depth=1 https://github.com/pipoprods/spaceship-debian-chroot.git "$HOME/.zsh/spaceship-debian-chroot"
For initializing prompt system add this to your .zshrc
:
source "~/.zsh/pipoprods/spaceship-debian-chroot.plugin.zsh"
After installing, add the following line to your .zshrc
in order to include Ember section in the prompt:
spaceship add --before char debian_chroot
This section is shown only when the $debian_chroot
variable is set.
Variable | Default | Meaning |
---|---|---|
SPACESHIP_FOOBAR_SHOW |
true |
Show current section |
SPACESHIP_FOOBAR_PREFIX |
$SPACESHIP_PROMPT_DEFAULT_PREFIX |
Prefix before section |
SPACESHIP_FOOBAR_SUFFIX |
$SPACESHIP_PROMPT_DEFAULT_SUFFIX |
Suffix after section |
SPACESHIP_FOOBAR_COLOR |
yellow |
Color of section |
First, thanks for your interest in contributing!
Contribute to this repo by submitting a pull request. Please use conventional commits, since this project adheres to semver and is automatically released via semantic-release.
MIT © Sébastien NOBILI