zshrc: key bindings and piv-agent (#27)

* piv-agent; macos key bindings; doll fix

* ci: piv-agent
This commit is contained in:
2022-11-15 01:28:38 +08:00
committed by GitHub
parent 6e33fc0875
commit 3ce5a7ade8
4 changed files with 50 additions and 17 deletions

View File

@@ -23,7 +23,7 @@ else
fi
if [[ -z "$CONTAINER" ]]; then
fmt_error "container not found"
fmt_fatal "container not found"
else
echo "--> ${CONTAINER_META[@]}"
$SUDO docker exec -it $CONTAINER sh -c 'if [ -x "$(command -v zsh)" ]; then echo "--> zsh"; zsh; elif [ -x "$(command -v bash)" ]; then echo "--> bash"; bash; else echo "--> sh"; sh; fi'

View File

@@ -18,8 +18,8 @@ else
fi
if [[ -z "$IMAGE" ]]; then
fmt_error "image not found"
fmt_fatal "image not found"
else
echo "--> ${IMAGE_META[@]}"
echo $SUDO docker run -itd $IMAGE sh
$SUDO docker run -itd $IMAGE sh
fi