A Moodle section for Spaceship prompt
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/ragusa87/section-moodle.git $ZSH_CUSTOM/plugins/section-moodle
Include section-moodle
in Oh-My-Zsh plugins list:
plugins=($plugins section-moodle)
zplug "ragusa87/section-moodle"
antigen bundle "ragusa87/section-moodle"
antibody bundle "ragusa87/section-moodle"
zinit light "ragusa87/section-moodle"
zgen load "ragusa87/section-moodle"
[plugins.section-moodle]
github = "ragusa87/section-moodle"
If none of the above methods works for you, you can install Spaceship manually.
- Clone this repo somewhere, for example to
$HOME/.zsh/section-moodle
. - Source this section in your
~/.zshrc
.
mkdir -p "$HOME/.zsh"
git clone --depth=1 https://github.com/ragusa87/section-moodle.git "$HOME/.zsh/section-moodle"
For initializing prompt system add this to your .zshrc
:
source "~/.zsh/section-moodle/section-moodle.plugin.zsh"
After installing, add the following line to your .zshrc
in order to include Ember section in the prompt:
spaceship add section-moodle
This section is shown only in directories within a Moodle context.
Variable | Default | Meaning |
---|---|---|
SPACESHIP_MOODLE_SHOW |
true |
Show section |
SPACESHIP_MOODLE_ASYNC |
true |
Render section asynchronously |
SPACESHIP_MOODLE_PREFIX |
$SPACESHIP_PROMPT_DEFAULT_PREFIX |
Section's prefix |
SPACESHIP_MOODLE_SUFFIX |
$SPACESHIP_PROMPT_DEFAULT_SUFFIX |
Section's suffix |
SPACESHIP_MOODLE_SYMBOL |
🎓 |
Symbol displayed before the section |
SPACESHIP_MOODLE_COLOR |
blue |
Section's color |
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 © Name Surname