From b8d7f3f7621ba33a4ff9f50546e8f81a4766f066 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Mon, 9 Nov 2020 17:56:32 +0800 Subject: [PATCH] [misc] fish completion is in official package --- apps/docker.sh | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/apps/docker.sh b/apps/docker.sh index 4b2c5c6..db1210a 100755 --- a/apps/docker.sh +++ b/apps/docker.sh @@ -21,21 +21,12 @@ esac sudo systemctl enable docker sudo systemctl start docker - - # configuration sudo usermod -aG docker "$USER" -# completion -case "$DEFAULT_SHELL" in - $FISH) - curl -sLo "$HOME/.config/fish/completions/docker.fish" --create-dirs \ - 'https://github.com/docker/cli/raw/master/contrib/completion/fish/docker.fish' - ;; -esac - -# set mirror -if in_china && [ -d /etc/docker ]; then +# set mirror for GREAT CHINA +if in_china; then + sudo mkdir -p /etc/docker if [ -f /etc/docker/daemon.json ]; then # backup [ ! -f /etc/docker/daemon.bak.json ] && \