zsh: better local directory completion (#787)

This commit is contained in:
gi1242 2024-05-05 10:10:29 -04:00 committed by GitHub
parent 5d8a7ea7b2
commit 208bb6375e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,7 +98,8 @@ if [[ -o zle ]]; then
if [[ "{{ "${#words[@]}" }}" -eq 2 ]]; then if [[ "{{ "${#words[@]}" }}" -eq 2 ]]; then
# Show completions for local directories. # Show completions for local directories.
_files -/ _cd -/
elif [[ "${words[-1]}" == '' ]]; then elif [[ "${words[-1]}" == '' ]]; then
# Show completions for Space-Tab. # Show completions for Space-Tab.
# shellcheck disable=SC2086 # shellcheck disable=SC2086