mirror of
https://github.com/starship/starship.git
synced 2024-12-23 23:58:51 +01:00
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
|
||||
- Indicator for jobs in the background (`✦`)
|
||||
- Current Kubernetes Cluster and Namespace (`☸`)
|
||||
- Current AWS profile (`☁️`)
|
||||
|
||||
## 🚀 Installation
|
||||
|
||||
|
@ -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. |
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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(())
|
||||
|
Loading…
Reference in New Issue
Block a user