From aed1bec4b729ef02d74503d40b39daa047a2a865 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 31 Jul 2018 13:16:19 +0000 Subject: [PATCH] [setup-home] add alpine compatiblity --- home/bin/setup-home.sh | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/home/bin/setup-home.sh b/home/bin/setup-home.sh index df8ab6b..b0247ad 100755 --- a/home/bin/setup-home.sh +++ b/home/bin/setup-home.sh @@ -1,4 +1,29 @@ #!/bin/sh set -e +if [ -e /etc/alpine-release ]; then + distro="alpine" +fi +echo "Installing basic packages" +case $distro in + "alpine") + sudo apk update + sudo apk add \ + bash \ + coreutils \ + git \ + less \ + python3 \ + rxvt-unicode-terminfo \ + tmux \ + vim \ + zsh \ + zsh-vcs + ;; + *) + echo "unknown distribution “${distro}”" + exit 1 + ;; +esac echo "Setting up powerline" -fc-cache -vf +fc-cache -vf || true +pip3 install --user powerline-status