diff options
author | Bruno Bigras <bigras.bruno@gmail.com> | 2019-08-26 14:09:39 -0400 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-08-26 14:09:39 -0400 |
commit | 0fa862a2e9b2e41656265dfaa0a4c57a2ab36180 (patch) | |
tree | ce6351ac2f36f0dfb7a1c70edaa1af5f3c200054 /src/print.rs | |
parent | f7754455e67ad6790792bfbe825ad33944df3ddc (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.rs | 1 |
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", ]; |