mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-28 15:22:32 +08:00
dogo: $DFS
This commit is contained in:
parent
412655d436
commit
f2b4faacee
|
@ -26,5 +26,5 @@ if [[ -z "$CONTAINER" ]]; then
|
||||||
fmt_fatal "container not found"
|
fmt_fatal "container not found"
|
||||||
else
|
else
|
||||||
echo "--> ${CONTAINER_META[@]}"
|
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'
|
$SUDO docker exec -it $CONTAINER sh -c 'export DFS="bash <(curl dfs.beardic.cn) -a"; if [ -x "$(command -v zsh)" ]; then echo "--> zsh"; unset DFS; zsh; elif [ -x "$(command -v bash)" ]; then echo "--> bash"; bash; else echo "--> sh"; sh; fi'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user