zsh autocomplete: replace use of sed with cut

Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
This commit is contained in:
Andre Eriksson 2016-04-28 19:24:44 -07:00 committed by Andre Eriksson
parent 612d263d74
commit 0058b4ba0c
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ __docker-compose_services_with_key() {
| sed -n 's/^ //p' \
| awk '/^[a-zA-Z0-9]/{printf "\n"};{printf $0;next;}' \
| grep " \+$1:" \
| sed "s/:.*//g" \
| cut -d: -f1 \
| grep -Ev "^(${already_selected})$"
}