Add dockerupdate function
This commit is contained in:
parent
1353f5d73c
commit
cebbfc2591
@ -60,6 +60,16 @@ rgenv () {
|
|||||||
fi
|
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
|
# Detect OS to autoload uncommon config files
|
||||||
if [[ "$(uname)" =~ "Darwin" ]]; then
|
if [[ "$(uname)" =~ "Darwin" ]]; then
|
||||||
for dotfile in "$XDG_CONFIG_HOME"/zsh-macos/*zsh*(.); do
|
for dotfile in "$XDG_CONFIG_HOME"/zsh-macos/*zsh*(.); do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user