zoxide/templates
alaviss 0dfe1c4073
fix(elvish): before-chdir should assign to oldpwd upvalue (#818)
elvish uses lexical scoping for closure capture, as such all `oldpwd`
references within the script refers to the `oldpwd` defined at the top.
However, before-chdir hook is trying to assign to `oldpwd` within the
editor scope, which is not used by this script.

This manifested as a bug in which:

```
~
> mkdir -p /tmp/another

~
> z /tmp

/tmp
> z another

/tmp/another
> z -

~
> # The previous dir should be /tmp not ~!
```

Because the hook was updating a variable that was not used.

Fix the hook so that before-chdir assign to the proper upvalue.
2024-05-29 15:06:28 +05:30
..
bash.txt Improve completions (#562) 2023-05-06 20:48:19 +05:30
elvish.txt fix(elvish): before-chdir should assign to oldpwd upvalue (#818) 2024-05-29 15:06:28 +05:30
fish.txt Fix handling of directories that look like flags in fish (#605) 2024-03-16 11:31:42 +05:30
nushell.txt fixed nushell init for new path type behavior (#830) 2024-05-29 13:15:56 +05:30
posix.txt Improve completions (#562) 2023-05-06 20:48:19 +05:30
powershell.txt pwsh: handle queries that look like args (#760) 2024-03-16 12:30:19 +05:30
xonsh.txt Fix CI 2023-11-21 02:48:58 +05:30
zsh.txt Return 0 only for Space+Tab 2024-05-06 10:47:50 +05:30