feat: add Elixir module (#437)

This commit is contained in:
KokaKiwi
2020-03-02 04:29:27 +01:00
committed by GitHub
parent 1eabd52725
commit 243e97cfe6
8 changed files with 172 additions and 0 deletions
+24
View File
@@ -102,6 +102,7 @@ prompt_order = [
"hg_branch",
"package",
"dotnet",
"elixir",
"elm",
"golang",
"haskell",
@@ -470,6 +471,29 @@ variable = "SHELL"
default = "unknown shell"
```
## Elixir
The `elixir` module shows the currently installed version of Elixir and Erlang/OTP.
The module will be shown if any of the following conditions are met:
- The current directory contains a `mix.exs` file.
### Options
| Variable | Default | Description |
| ---------- | ------------ | ------------------------------------------------------ |
| `symbol` | `"💧 "` | The symbol used before displaying the version of Rust. |
| `disabled` | `false` | Disables the `elixir` module. |
### Example
```toml
# ~/.config/starship.toml
[elixir]
symbol = "🔮 "
```
## Git Branch
The `git_branch` module shows the active branch of the repo in your current directory.