mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-23 06:07:56 +08:00

Directories are completed like commands, because of implicit cd. However, directories found inside $PATH entries should not be completed, as implicit cd doesn't work there. Similarly, directories should not be completed after the `command` builtin. Fixes #1695.
36 lines
273 B
Plaintext
36 lines
273 B
Plaintext
AAAA:
|
|
--abcd
|
|
AAAA:
|
|
--abcd
|
|
--efgh
|
|
BBBB:
|
|
--abcd
|
|
BBBB:
|
|
|
|
CCCC:
|
|
--bar
|
|
--baz
|
|
-a
|
|
-b
|
|
-bar
|
|
-foo
|
|
CCCC:
|
|
--baz
|
|
-a
|
|
-b
|
|
-bar
|
|
-foo
|
|
CCCC:
|
|
--baz
|
|
-a
|
|
-b
|
|
-bar
|
|
CCCC:
|
|
--baz
|
|
-b
|
|
-bar
|
|
CCCC:
|
|
implicit cd complete works
|
|
no implicit cd complete after 'command'
|
|
PATH does not cause incorrect implicit cd
|