summaryrefslogtreecommitdiffstats
path: root/src/configs
diff options
context:
space:
mode:
authorCarl-Louis Van Brandt <clvanbrandt@gmail.com>2021-05-13 02:43:46 +0200
committerGitHub <noreply@github.com>2021-05-12 20:43:46 -0400
commit69a754573d1321032c82083f86097550ea7920a4 (patch)
tree5b74f09f6b0aeff469c5267fae7cafa51c31d812 /src/configs
parentbaabc7743d0bc65d57a3e9921c10dea9d7581a84 (diff)
feat(aws): add temporary credentials countdown (#2464)
Diffstat (limited to 'src/configs')
-rw-r--r--src/configs/aws.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/configs/aws.rs b/src/configs/aws.rs
index 8cef66362..8cb2b2dd5 100644
--- a/src/configs/aws.rs
+++ b/src/configs/aws.rs
@@ -10,16 +10,18 @@ pub struct AwsConfig<'a> {
pub style: &'a str,
pub disabled: bool,
pub region_aliases: HashMap<String, &'a str>,
+ pub expiration_symbol: &'a str,
}
impl<'a> Default for AwsConfig<'a> {
fn default() -> Self {
AwsConfig {
- format: "on [$symbol($profile )(\\($region\\) )]($style)",
+ format: "on [$symbol($profile )(\\($region\\) )(\\[$duration\\])]($style)",
symbol: "☁️ ",
style: "bold yellow",
disabled: false,
region_aliases: HashMap::new(),
+ expiration_symbol: "X",
}
}
}