diff options
author | David Knaack <davidkna@users.noreply.github.com> | 2019-10-15 17:10:16 +0200 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-10-16 00:10:16 +0900 |
commit | 6ab70796dbaf4d37a16836b5390baa3d8f9759f6 (patch) | |
tree | 1c9f74d940fa69a211649de75e96026fbd2c9833 /src/modules/battery.rs | |
parent | b5bb6d69947e95bc8e0c3697615e7f2a10925cb5 (diff) |
feat: Implement PowerShell support (#470)
Diffstat (limited to 'src/modules/battery.rs')
-rw-r--r-- | src/modules/battery.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/battery.rs b/src/modules/battery.rs index 2959a046f..96ca6dfa8 100644 --- a/src/modules/battery.rs +++ b/src/modules/battery.rs @@ -8,6 +8,7 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let shell = std::env::var("STARSHIP_SHELL").unwrap_or_default(); let percentage_char = match shell.as_str() { "zsh" => "%%", // % is an escape in zsh, see PROMPT in `man zshmisc` + "powershell" => "`%", _ => "%", }; |