diff --git a/README.md b/README.md index a1401bcc..a4089649 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,7 @@ The prompt shows information you need while you're working, while staying sleek - Execution time of the last command if it exceeds the set threshold - Indicator for jobs in the background (`✦`) - Current Kubernetes Cluster and Namespace (`☸`) +- Current AWS profile (`☁️`) ## 🚀 Installation diff --git a/docs/config/README.md b/docs/config/README.md index 504c87b1..490b042d 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -121,7 +121,7 @@ The `aws` module shows the current AWS profile. This is based on the | Variable | Default | Description | | ---------- | --------------- | ---------------------------------------------------------- | -| `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. | +| `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. | | `style` | `"bold yellow"` | The style for the module. | | `disabled` | `false` | Disables the `AWS` module. | diff --git a/src/configs/aws.rs b/src/configs/aws.rs index f362d087..2c958950 100644 --- a/src/configs/aws.rs +++ b/src/configs/aws.rs @@ -14,7 +14,7 @@ pub struct AwsConfig<'a> { impl<'a> RootModuleConfig<'a> for AwsConfig<'a> { fn new() -> Self { AwsConfig { - symbol: SegmentConfig::new("☁️ "), + symbol: SegmentConfig::new("☁️ "), profile: SegmentConfig::default(), style: Color::Yellow.bold(), disabled: false, diff --git a/tests/testsuite/aws.rs b/tests/testsuite/aws.rs index d02bccca..65a7bce7 100644 --- a/tests/testsuite/aws.rs +++ b/tests/testsuite/aws.rs @@ -18,7 +18,7 @@ fn profile_set() -> io::Result<()> { .env_clear() .env("AWS_PROFILE", "astronauts") .output()?; - let expected = format!("on {} ", Color::Yellow.bold().paint("☁️ astronauts")); + let expected = format!("on {} ", Color::Yellow.bold().paint("☁️ astronauts")); let actual = String::from_utf8(output.stdout).unwrap(); assert_eq!(expected, actual); Ok(())