Skip to content

Commit

Permalink
zsh: better local directory completion (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
gi1242 authored May 5, 2024
1 parent 5d8a7ea commit 208bb63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/zsh.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ if [[ -o zle ]]; then

if [[ "{{ "${#words[@]}" }}" -eq 2 ]]; then
# Show completions for local directories.
_files -/
_cd -/

elif [[ "${words[-1]}" == '' ]]; then
# Show completions for Space-Tab.
# shellcheck disable=SC2086
Expand Down

0 comments on commit 208bb63

Please sign in to comment.