mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:06:41 +00:00
feat(orbstack): shell setup for Orbstack (Docker Desktop replacement)
This commit is contained in:
@@ -2,25 +2,40 @@
|
||||
# Containers
|
||||
#
|
||||
|
||||
docker_remove_exited() {
|
||||
docker rm $(docker ps -f='status=exited' -q)
|
||||
}
|
||||
if command-exists docker; then
|
||||
docker_remove_exited() {
|
||||
docker rm $(docker ps -f='status=exited' -q)
|
||||
}
|
||||
|
||||
# Disable docker scan suggestion/advertisement. It currently prints even when -q
|
||||
# is passed to docker build.
|
||||
export DOCKER_SCAN_SUGGEST=false
|
||||
# Disable docker scan suggestion/advertisement. It currently prints even when
|
||||
# -q is passed to docker build.
|
||||
export DOCKER_SCAN_SUGGEST=false
|
||||
|
||||
alias d="docker"
|
||||
alias dc="docker compose"
|
||||
alias co="docker-compose"
|
||||
alias dre="docker_remove_exited"
|
||||
alias d="docker"
|
||||
alias dc="docker compose"
|
||||
alias co="docker-compose"
|
||||
alias dre="docker_remove_exited"
|
||||
fi
|
||||
|
||||
alias n="nerdctl"
|
||||
alias ne="nerdctl"
|
||||
alias nec="nerdctl compose"
|
||||
if command-exists nerdctl; then
|
||||
alias n="nerdctl"
|
||||
alias ne="nerdctl"
|
||||
alias nec="nerdctl compose"
|
||||
fi
|
||||
|
||||
# Podman
|
||||
alias p="podman"
|
||||
alias pd="podman"
|
||||
alias pm="podman machine"
|
||||
alias pc="podman-compose"
|
||||
if command-exists podman; then
|
||||
alias p="podman"
|
||||
alias pd="podman"
|
||||
alias pm="podman machine"
|
||||
alias pc="podman-compose"
|
||||
fi
|
||||
|
||||
if command-exists orbctl; then
|
||||
alias oc="orbctl"
|
||||
|
||||
if [ ! -f "${DOTZSH_SITEFUNS}/_orbctl" ]; then
|
||||
echo "Setting up completion for orbctl -- ${DOTZSH_SITEFUNS}/_orbctl"
|
||||
orbctl completion zsh > "${DOTZSH_SITEFUNS}/_orbctl"
|
||||
chmod +x "${DOTZSH_SITEFUNS}/_orbctl"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user