mirror of
https://github.com/starship/starship.git
synced 2026-06-21 02:02:14 +07:00
fix(character): also handle vi edit mode in pwsh (#5775)
* Add missing vi for char for Shell::Pwsh https://github.com/starship/starship/pull/5478#issuecomment-1886829331
This commit is contained in:
@@ -37,7 +37,7 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
|
||||
let mode = match (&context.shell, keymap) {
|
||||
(Shell::Fish, "default")
|
||||
| (Shell::Zsh, "vicmd")
|
||||
| (Shell::Cmd | Shell::PowerShell, "vi") => ShellEditMode::Normal,
|
||||
| (Shell::Cmd | Shell::PowerShell | Shell::Pwsh, "vi") => ShellEditMode::Normal,
|
||||
(Shell::Fish, "visual") => ShellEditMode::Visual,
|
||||
(Shell::Fish, "replace") => ShellEditMode::Replace,
|
||||
(Shell::Fish, "replace_one") => ShellEditMode::ReplaceOne,
|
||||
|
||||
Reference in New Issue
Block a user