Skip to content

Commit a18408e

Browse files
andytommatchai
authored andcommitted
fix: Fix the spacing around the AWS default symbol (starship#529)
This updates the default AWS default symbol to include a space after the symbol to make it a little bit more readable. Have also updated the README to include the AWS module.
1 parent 4d1f0b6 commit a18408e

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ The prompt shows information you need while you're working, while staying sleek
113113
- Execution time of the last command if it exceeds the set threshold
114114
- Indicator for jobs in the background (``)
115115
- Current Kubernetes Cluster and Namespace (``)
116+
- Current AWS profile (`☁️`)
116117

117118
## 🚀 Installation
118119

docs/config/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ The `aws` module shows the current AWS profile. This is based on the
121121

122122
| Variable | Default | Description |
123123
| ---------- | --------------- | ---------------------------------------------------------- |
124-
| `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. |
124+
| `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. |
125125
| `style` | `"bold yellow"` | The style for the module. |
126126
| `disabled` | `false` | Disables the `AWS` module. |
127127

src/configs/aws.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub struct AwsConfig<'a> {
1414
impl<'a> RootModuleConfig<'a> for AwsConfig<'a> {
1515
fn new() -> Self {
1616
AwsConfig {
17-
symbol: SegmentConfig::new("☁️ "),
17+
symbol: SegmentConfig::new("☁️ "),
1818
profile: SegmentConfig::default(),
1919
style: Color::Yellow.bold(),
2020
disabled: false,

tests/testsuite/aws.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn profile_set() -> io::Result<()> {
1818
.env_clear()
1919
.env("AWS_PROFILE", "astronauts")
2020
.output()?;
21-
let expected = format!("on {} ", Color::Yellow.bold().paint("☁️ astronauts"));
21+
let expected = format!("on {} ", Color::Yellow.bold().paint("☁️ astronauts"));
2222
let actual = String::from_utf8(output.stdout).unwrap();
2323
assert_eq!(expected, actual);
2424
Ok(())

0 commit comments

Comments
 (0)