mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
Ignore comments in ansible hosts
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ __host_list ()
|
||||
local -a mixed_host_list
|
||||
mixed_host_list=$(command \
|
||||
cat ${HOST_FILE} \
|
||||
| awk 'NF && $1 !~ /[\[:=]/ { print $1 }' \
|
||||
| awk 'NF && $1 !~ /^[:space:]*#|[\[:=]/ { print $1 }' \
|
||||
| sort | uniq)
|
||||
|
||||
# compute set difference h1 - h2
|
||||
|
||||
Reference in New Issue
Block a user