This commit is contained in:
Ajeet D'Souza 2023-11-19 18:52:15 +05:30
parent f537a4e6d2
commit 3022cf3686
4 changed files with 6 additions and 7 deletions

View File

@ -17,6 +17,5 @@ jobs:
daysUntilClose: 30 daysUntilClose: 30
responseRequiredLabel: waiting-for-response responseRequiredLabel: waiting-for-response
closeComment: > closeComment: >
This issue has been automatically closed due to inactivity. If you feel This issue has been automatically closed due to inactivity. If you feel this is still relevant, please comment here or create a fresh issue.
this is still relevant, please comment here or create a fresh issue.

View File

@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- Nushell: add support for v0.86.0. - Nushell: support for v0.86.0.
## [0.9.2] - 2023-08-04 ## [0.9.2] - 2023-08-04
@ -28,7 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- Fish/Zsh: aliases on `__zoxide_z` will now use completions. - Fish/Zsh: aliases on `__zoxide_z` will now use completions.
- Nushell: add support for v0.78.0. - Nushell: support for v0.78.0.
- Fish: plugin now works on older versions. - Fish: plugin now works on older versions.
- PowerShell: warn when PowerShell version is too old for `z -` and `z +`. - PowerShell: warn when PowerShell version is too old for `z -` and `z +`.
- PowerShell: support for PWD hooks on all versions. - PowerShell: support for PWD hooks on all versions.

View File

@ -1,6 +1,6 @@
let let
pkgs = import (builtins.fetchTarball pkgs = import (builtins.fetchTarball
"https://github.com/NixOS/nixpkgs/archive/22a6958f46fd8e14830d02856ff63b1d0e5cc3e4.tar.gz") { "https://github.com/NixOS/nixpkgs/archive/4d513ab5f170d66afa3387bdd718d41aa936ee9f.tar.gz") {
overlays = [ rust ]; overlays = [ rust ];
}; };
rust = import (builtins.fetchTarball rust = import (builtins.fetchTarball

View File

@ -38,7 +38,7 @@ def __zoxide_pwd() -> str:
{%- else %} {%- else %}
pwd = __zoxide_env().get("PWD") pwd = __zoxide_env().get("PWD")
if pwd is None: if pwd is None:
raise Exception("$PWD not found") raise RuntimeError("$PWD not found")
{%- endif %} {%- endif %}
return pwd return pwd
@ -53,7 +53,7 @@ def __zoxide_cd(path: typing.Optional[typing.AnyStr] = None) -> None:
args = [path] args = [path]
_, exc, _ = xonsh.dirstack.cd(args) _, exc, _ = xonsh.dirstack.cd(args)
if exc is not None: if exc is not None:
raise Exception(exc) raise RuntimeError(exc)
{%- if echo %} {%- if echo %}
print(__zoxide_pwd()) print(__zoxide_pwd())
{%- endif %} {%- endif %}