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:
parent
4d1f0b6c6f
commit
a18408e30c
|
@ -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
|
- Execution time of the last command if it exceeds the set threshold
|
||||||
- Indicator for jobs in the background (`✦`)
|
- Indicator for jobs in the background (`✦`)
|
||||||
- Current Kubernetes Cluster and Namespace (`☸`)
|
- Current Kubernetes Cluster and Namespace (`☸`)
|
||||||
|
- Current AWS profile (`☁️`)
|
||||||
|
|
||||||
## 🚀 Installation
|
## 🚀 Installation
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,7 @@ The `aws` module shows the current AWS profile. This is based on the
|
||||||
|
|
||||||
| Variable | Default | Description |
|
| 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. |
|
| `style` | `"bold yellow"` | The style for the module. |
|
||||||
| `disabled` | `false` | Disables the `AWS` module. |
|
| `disabled` | `false` | Disables the `AWS` module. |
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ pub struct AwsConfig<'a> {
|
||||||
impl<'a> RootModuleConfig<'a> for AwsConfig<'a> {
|
impl<'a> RootModuleConfig<'a> for AwsConfig<'a> {
|
||||||
fn new() -> Self {
|
fn new() -> Self {
|
||||||
AwsConfig {
|
AwsConfig {
|
||||||
symbol: SegmentConfig::new("☁️ "),
|
symbol: SegmentConfig::new("☁️ "),
|
||||||
profile: SegmentConfig::default(),
|
profile: SegmentConfig::default(),
|
||||||
style: Color::Yellow.bold(),
|
style: Color::Yellow.bold(),
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
|
|
@ -18,7 +18,7 @@ fn profile_set() -> io::Result<()> {
|
||||||
.env_clear()
|
.env_clear()
|
||||||
.env("AWS_PROFILE", "astronauts")
|
.env("AWS_PROFILE", "astronauts")
|
||||||
.output()?;
|
.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();
|
let actual = String::from_utf8(output.stdout).unwrap();
|
||||||
assert_eq!(expected, actual);
|
assert_eq!(expected, actual);
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue