diff --git a/Cargo.toml b/Cargo.toml index 7835ccc..45d9c71 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ name = "zoxide" readme = "README.md" repository = "https://github.com/ajeetdsouza/zoxide" rust-version = "1.74.1" -version = "0.9.7" +version = "0.9.8" [badges] maintenance = { status = "actively-developed" } diff --git a/templates/powershell.txt b/templates/powershell.txt index 86b1966..38b4a4c 100644 --- a/templates/powershell.txt +++ b/templates/powershell.txt @@ -86,10 +86,13 @@ if ($global:__zoxide_hooked -ne 1) { $global:__zoxide_prompt_old = $function:prompt function global:prompt { - if ($null -ne $__zoxide_prompt_old) { - & $__zoxide_prompt_old + $customPrompt = "" + if ($null -ne $global:__zoxide_prompt_old) { + $customPrompt = & $global:__zoxide_prompt_old } $null = __zoxide_hook + + return $customPrompt } } {%- endif %}