Add dockerupdate function

This commit is contained in:
Eric Torres 2023-06-20 13:34:12 -07:00
parent 1353f5d73c
commit cebbfc2591

View File

@ -52,7 +52,7 @@ cf() {
autoload -Uz cf
rgenv () {
rgenv() {
if [[ -n $1 ]]; then
env | rg --ignore-case $1
else
@ -60,6 +60,16 @@ rgenv () {
fi
}
# Update a docker container using docker compose
# Note: must be in the container directory
dockerupdate() {
docker compose down
until docker compose pull; do
docker compose pull
done
docker compose up -d
}
# Detect OS to autoload uncommon config files
if [[ "$(uname)" =~ "Darwin" ]]; then
for dotfile in "$XDG_CONFIG_HOME"/zsh-macos/*zsh*(.); do