[setup-home] add alpine compatiblity

This commit is contained in:
Simon Bruder 2018-07-31 13:16:19 +00:00
parent 7a178e1c13
commit aed1bec4b7
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -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