mirror of
https://github.com/docker/compose.git
synced 2025-07-17 02:34:28 +02:00
zsh autocomplete: replace use of sed with cut
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
This commit is contained in:
parent
612d263d74
commit
0058b4ba0c
@ -53,7 +53,7 @@ __docker-compose_services_with_key() {
|
|||||||
| sed -n 's/^ //p' \
|
| sed -n 's/^ //p' \
|
||||||
| awk '/^[a-zA-Z0-9]/{printf "\n"};{printf $0;next;}' \
|
| awk '/^[a-zA-Z0-9]/{printf "\n"};{printf $0;next;}' \
|
||||||
| grep " \+$1:" \
|
| grep " \+$1:" \
|
||||||
| sed "s/:.*//g" \
|
| cut -d: -f1 \
|
||||||
| grep -Ev "^(${already_selected})$"
|
| grep -Ev "^(${already_selected})$"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user