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