From 96cc2ca788867b29263bfbdfe5e8304782d26ac3 Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Sat, 13 Oct 2018 14:45:57 -0500 Subject: [PATCH] Add Elm Section (#528) --- Options.md | 12 ++++++++++++ README.md | 1 + 2 files changed, 13 insertions(+) diff --git a/Options.md b/Options.md index 19606f9e2..5abf5a625 100644 --- a/Options.md +++ b/Options.md @@ -263,6 +263,18 @@ Ruby section is shown only in directories that contain `Gemfile`, or `Rakefile`, | `SPACESHIP_RUBY_SYMBOL` | `💎·` | Character to be shown before Ruby version | | `SPACESHIP_RUBY_COLOR` | `red` | Color of Ruby section | +### Elm (`elm`) + +Elm section is shown only in directories that contain `elm.json` file, `elm-package.json` file, `elm-stuff` directory, or any other file with `.elm` extension. + +| Variable | Default | Meaning | +| :------- | :-----: | ------- | +| `SPACESHIP_ELM_SHOW` | `true` | Show installed Elm version | +| `SPACESHIP_ELM_PREFIX` | `$SPACESHIP_PROMPT_DEFAULT_PREFIX` | Prefix before Elm section | +| `SPACESHIP_ELM_SUFFIX` | `$SPACESHIP_PROMPT_DEFAULT_SUFFIX` | Suffix after Elm section | +| `SPACESHIP_ELM_SYMBOL` | `🌳·` | Character to be shown before Elm version | +| `SPACESHIP_ELM_COLOR` | `cyan` | Color of Elm section | + ### Elixir (`elixir`) Elixir section is shown only in directories that contain `mix.exs`, or any other file with `.ex` or `.exs` extension. If the current elixir version is the same as the version set in `SPACESHIP_ELIXIR_DEFAULT_VERSION`, the elixir section will be hidden. diff --git a/README.md b/README.md index a16c2901d..8aaaffcbd 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ * [Package version (package)](/docs/Options.md#package-version-package) * [Node (node)](/docs/Options.md#nodejs-node) * [Ruby (ruby)](/docs/Options.md#ruby-ruby) + * [Elm (elm)](/docs/Options.md#elm-elm) * [Elixir (elixir)](/docs/Options.md#elixir-elixir) * [Xcode (xcode)](/docs/Options.md#xcode-xcode) * [Swift (swift)](/docs/Options.md#swift-swift)