ZSH: Sort results by path in dc function
This commit is contained in:
parent
5310a56996
commit
a768bf308f
@ -4,7 +4,7 @@ function dc() {
|
|||||||
# Save current working directory
|
# Save current working directory
|
||||||
CURRENT_DIR="${PWD}"
|
CURRENT_DIR="${PWD}"
|
||||||
|
|
||||||
for file in $(find ${PWD} -maxdepth 2 -type f -regextype posix-extended -regex '.*(docker-compose|compose)\.ya?ml'); do
|
for file in $(find ${PWD} -maxdepth 2 -type f -regextype posix-extended -regex '.*(docker-compose|compose)\.ya?ml' | sort); do
|
||||||
cd $(dirname "$file")
|
cd $(dirname "$file")
|
||||||
docker compose $@
|
docker compose $@
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user