mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 14:27:01 +08:00
12 lines
298 B
Plaintext
12 lines
298 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
THIS_DIR=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd )
|
||
|
DOTFILES=${DOTFILES:-$( cd "$THIS_DIR/.." && pwd )}
|
||
|
source "$DOTFILES/tools/common.sh"
|
||
|
|
||
|
if [[ -z "$1" || "$1" =~ "-h|--help" ]]; then
|
||
|
fmt_info "usage: dogo <container>"
|
||
|
else
|
||
|
$SUDO docker exec -it $1 zsh
|
||
|
fi
|