summaryrefslogtreecommitdiffstats
path: root/src/print.rs
diff options
context:
space:
mode:
authorBruno Bigras <bigras.bruno@gmail.com>2019-08-26 14:09:39 -0400
committerMatan Kushner <hello@matchai.me>2019-08-26 14:09:39 -0400
commit0fa862a2e9b2e41656265dfaa0a4c57a2ab36180 (patch)
treece6351ac2f36f0dfb7a1c70edaa1af5f3c200054 /src/print.rs
parentf7754455e67ad6790792bfbe825ad33944df3ddc (diff)
make the battery module optional for now (#234)
The 'battery' crate doesn't support Termux, so we are temporarily making the battery module optional.
Diffstat (limited to 'src/print.rs')
-rw-r--r--src/print.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/print.rs b/src/print.rs
index 56ba2287f..c3d2e8f41 100644
--- a/src/print.rs
+++ b/src/print.rs
@@ -26,6 +26,7 @@ const DEFAULT_PROMPT_ORDER: &[&str] = &[
"cmd_duration",
"line_break",
"jobs",
+ #[cfg(feature = "battery")]
"battery",
"character",
];