fix: Fix the spacing around the AWS default symbol (#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.
This commit is contained in:
Thomas O'Donnell 2019-10-14 14:56:16 +01:00 committed by Matan Kushner
parent 4d1f0b6c6f
commit a18408e30c
4 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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. |

View File

@ -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,

View File

@ -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(())