mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 09:26:42 +00:00
feat(orbstack): shell setup for Orbstack (Docker Desktop replacement)
This commit is contained in:
@@ -2,25 +2,40 @@
|
|||||||
# Containers
|
# Containers
|
||||||
#
|
#
|
||||||
|
|
||||||
docker_remove_exited() {
|
if command-exists docker; then
|
||||||
docker rm $(docker ps -f='status=exited' -q)
|
docker_remove_exited() {
|
||||||
}
|
docker rm $(docker ps -f='status=exited' -q)
|
||||||
|
}
|
||||||
|
|
||||||
# Disable docker scan suggestion/advertisement. It currently prints even when -q
|
# Disable docker scan suggestion/advertisement. It currently prints even when
|
||||||
# is passed to docker build.
|
# -q is passed to docker build.
|
||||||
export DOCKER_SCAN_SUGGEST=false
|
export DOCKER_SCAN_SUGGEST=false
|
||||||
|
|
||||||
alias d="docker"
|
alias d="docker"
|
||||||
alias dc="docker compose"
|
alias dc="docker compose"
|
||||||
alias co="docker-compose"
|
alias co="docker-compose"
|
||||||
alias dre="docker_remove_exited"
|
alias dre="docker_remove_exited"
|
||||||
|
fi
|
||||||
|
|
||||||
alias n="nerdctl"
|
if command-exists nerdctl; then
|
||||||
alias ne="nerdctl"
|
alias n="nerdctl"
|
||||||
alias nec="nerdctl compose"
|
alias ne="nerdctl"
|
||||||
|
alias nec="nerdctl compose"
|
||||||
|
fi
|
||||||
|
|
||||||
# Podman
|
if command-exists podman; then
|
||||||
alias p="podman"
|
alias p="podman"
|
||||||
alias pd="podman"
|
alias pd="podman"
|
||||||
alias pm="podman machine"
|
alias pm="podman machine"
|
||||||
alias pc="podman-compose"
|
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
|
||||||
|
|||||||
6
zshenv
6
zshenv
@@ -203,6 +203,12 @@ fi
|
|||||||
path_prepend "$HOME/.local/share/rtx/bin"
|
path_prepend "$HOME/.local/share/rtx/bin"
|
||||||
path_prepend "$HOME/.local/share/rtx/shims"
|
path_prepend "$HOME/.local/share/rtx/shims"
|
||||||
|
|
||||||
|
# orbstack setup
|
||||||
|
if [ -f "$HOME/.orbstack/shell/init.zsh" ]; then
|
||||||
|
source "$HOME/.orbstack/shell/init.zsh"
|
||||||
|
fi
|
||||||
|
path_prepend "$HOME/.orbstack/bin"
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Path setup for select binaries installed with zinit
|
# Path setup for select binaries installed with zinit
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user