Spelling and bash completion fixes (#1137)

* Remove hashbang from bash completion

Completion files are not supposed to have a hashbang.
They are sourced, not executed.

* Fix spelling

* Trim excess whitespace
This commit is contained in:
a1346054 authored and GitHub committed 2021-09-03 15:05:03 +02:00
1 parent a62391e789
commit e7d8b9cece
5 files changed
+10 -13

No files matched your search

+1 -4
View File
@@ -1,11 +1,8 @@
#!/usr/bin/env bash
_http_complete() {
local cur_word=${COMP_WORDS[COMP_CWORD]}
local prev_word=${COMP_WORDS[COMP_CWORD - 1]}
if [[ "$cur_word" == -* ]]; then
if [[ "$cur_word" == -* ]]; then
_http_complete_options "$cur_word"
fi
}