feat(PureScript): Add Purescript module (#1227)

* Added configs/purescript

* Added modules/purescript

* Added necessary codes

* Added tests

* Updated README

* Fixed color because black is hard to see

* Fixed of push mistake

* Fixed pointed out in PR
This commit is contained in:
nobv
2020-05-23 01:26:58 +09:00
committed by GitHub
parent a670e01c22
commit 63799b97d1
8 changed files with 131 additions and 0 deletions
+26
View File
@@ -118,6 +118,7 @@ prompt_order = [
"nodejs",
"ocaml",
"php",
"purescript",
"python",
"ruby",
"rust",
@@ -1441,3 +1442,28 @@ files = ["foo"] # can specify filters
when = """ test "$HOME" == "$PWD" """
prefix = " transcending "
```
## PureScript
The `purescript` module shows the currently installed version of PureScript version.
The module will be shown if any of the following conditions are met:
- The current directory contains a `spago.dhall` file
- The current directory contains a \*.purs files
### Options
| Variable | Default | Description |
| ---------- | -------------- | ------------------------------------------------------------ |
| `symbol` | `"<=> "` | The symbol used before displaying the version of PureScript. |
| `style` | `"bold white"` | The style for the module. |
| `disabled` | `false` | Disables the `purescript` module. |
### Example
```toml
# ~/.config/starship.toml
[purescript]
symbol = "<=> "
```