Skip to content

Commit

Permalink
docs: add Swift module docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimyr committed May 26, 2020
1 parent 8136383 commit 8a5a379
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/config/README.md
Expand Up @@ -1274,6 +1274,31 @@ and `$SINGULARITY_NAME` is set.
symbol = "📦 "
```

## Swift

The `swift` module shows the currently installed version of Swift.
The module will be shown if any of the following conditions are met:

- The current directory contains a `Package.swift` file
- The current directory contains a file with the `.swift` extension

### Options

| Variable | Default | Description |
| ---------- | ------------ | ------------------------------------------------------ |
| `symbol` | `"S "` | The symbol used before displaying the version of Swift. |
| `style` | `"bold 202"` | The style for the module. |
| `disabled` | `false` | Disables the `swift` module. |

### Example

```toml
# ~/.config/starship.toml

[swift]
symbol = "🐦 "
```

## Terraform

The `terraform` module shows the currently selected terraform workspace and version.
Expand Down
3 changes: 3 additions & 0 deletions docs/presets/README.md
Expand Up @@ -78,4 +78,7 @@ symbol = " "

[rust]
symbol = ""

[swift]
symbol = ""
```

0 comments on commit 8a5a379

Please sign in to comment.