Skip to content
Myr

fix: typo in {bash,zsh}_completions.go (#1459)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Fix typo in bash_completions.go * Fix the same typo in zsh_completions.go

authored by favonia · committed by GitHub · parent c3573e2 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:bash_completions.go+1 added-1 removed
132 unmodified lines
133 __%[1]s_debug "File filtering command: $filteringCmd"134 $filteringCmd135 elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then136 # File completion for directories only137 local subDir137 local subdir138 # Use printf to strip any trailing newline139 subdir=$(printf "%%s" "${out[0]}")140 if [ -n "$subdir" ]; then141 __%[1]s_debug "Listing directories in $subdir"
556 unmodified lines
modified:zsh_completions.go+1 added-1 removed
200 unmodified lines
201 __%[1]s_debug "File filtering command: $filteringCmd"202 _arguments '*:filename:'"$filteringCmd"203 elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then204 # File completion for directories only205 local subDir205 local subdir206 subdir="${completions[1]}"207 if [ -n "$subdir" ]; then208 __%[1]s_debug "Listing directories in $subdir"209 pushd "${subdir}" >/dev/null 2>&1
49 unmodified lines