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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue