completions: Offer ../ and ./ again (#9477)

Inadvertently broken in a2d816710f,
this made `cd .` no longer offer `cd ../` (same for general file completions
like `ls .`, which only offers dotfiles)
This commit is contained in:
Fabian Boehm
2023-01-16 10:05:01 +01:00
committed by GitHub
parent 256713b670
commit 6df09b3753
4 changed files with 17 additions and 7 deletions

View File

@@ -267,3 +267,7 @@ begin
# CHECK: $PWD is absolute
cd ../../..
end
complete -C'cd .'
# CHECK: ../
# CHECK: ./