Compare commits

..

No commits in common. "74b725ff8904cd3c8528979dbc8441b6c31554ff" and "154209ffd72360155b83f760b8e7aeaa44a929cb" have entirely different histories.

2 changed files with 3 additions and 13 deletions

View File

@ -1,14 +1,4 @@
# Search for docker-compose files in the current and all sub direcotries and run docker compose with provided arguments
function dc() {
# Save current working directory
CURRENT_DIR="${PWD}"
for file in $(find ${PWD} -maxdepth 2 -type f -regextype posix-extended -regex '.*(docker-compose|compose)\.ya?ml'); do
cd $(dirname "$file")
docker compose $@
done
# Change back to saved working directory
cd ${CURRENT_DIR}
DOCKER_PARAMS="$@"
find . -maxdepth 2 -type f -regextype posix-extended -regex '.*(docker-compose|compose)\.ya?ml' -execdir "docker compose ${DOCKER_PARAMS}" \;
}

View File

@ -3,7 +3,7 @@
function zwcautocompile () {
autoload -Uz zrecompile
for zsh_file in $(find ${ZDOTDIR} -maxdepth 3 -type f \( -name "*.zsh" -o -name ".zlogin" -o -name ".zshrc" \) ! -name "*.zwc" ! -name "*.zwc.old"); do
for zsh_file in $(find ${ZDOTDIR} -type f -maxdepth 3 \( -name "*.zsh" -o -name ".zlogin" -o -name ".zshrc" \) ! -name "*.zwc" ! -name "*.zwc.old"); do
zrecompile -pq $zsh_file && rm -f $zsh_file.zwc.old
done