zoxide/templates
solodov 8da8f50eaa
support autocd option (#695)
* support autocd option

In bash, when autocd option is set and user enters a directory name as a
command, it results in a very specific call to cd:

cd -- [directory name]

zoxide's directory changing function passes all arguments to __zoxide_z as is,
including the "--" first argument. By detecting this and skipping the first
argument changing directory works with autocd set.

* remove directory check

just skip the first argument and pass the rest as is. checking for directory
breaks cd'ing to symlinked directories

* undo some of the hackery

tests are failing
2024-06-25 22:47:33 +05:30
..
bash.txt support autocd option (#695) 2024-06-25 22:47:33 +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