summaryrefslogtreecommitdiffstats
path: root/src/modules/aws.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/aws.rs')
-rw-r--r--src/modules/aws.rs29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/modules/aws.rs b/src/modules/aws.rs
deleted file mode 100644
index 65ca05142..000000000
--- a/src/modules/aws.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-use std::env;
-
-use ansi_term::Color;
-
-use super::{Context, Module};
-
-pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
- const AWS_CHAR: &str = "☁️ ";
- const AWS_PREFIX: &str = "on ";
-
- let aws_profile = env::var("AWS_PROFILE").ok()?;
- if aws_profile.is_empty() {
- return None;
- }
-
- let mut module = context.new_module("aws");
-
- let module_style = module
- .config_value_style("style")
- .unwrap_or_else(|| Color::Yellow.bold());
- module.set_style(module_style);
-
- module.get_prefix().set_value(AWS_PREFIX);
-
- module.new_segment("symbol", AWS_CHAR);
- module.new_segment("profile", &aws_profile);
-
- Some(module)
-}