2016-12-25 12:54:05 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
case $OSTYPE in
|
|
|
|
darwin*)
|
|
|
|
brew install mpd mpc
|
2016-12-25 16:08:06 -08:00
|
|
|
brew install ncmpcpp --with-clock --with-visualizer --with-outputs
|
|
|
|
ln -sfv $HOME/.config/mpd/mpd-osx.conf $HOME/.config/mpd/mpd.conf
|
2016-12-25 12:54:05 -08:00
|
|
|
;;
|
|
|
|
linux*)
|
2017-05-05 12:32:40 -07:00
|
|
|
if [[ -f /etc/arch-release ]]; then
|
2016-12-25 12:54:05 -08:00
|
|
|
sudo pacman --needed --noconfirm -S mpd mpc ncmpcpp
|
|
|
|
fi
|
2016-12-25 16:08:06 -08:00
|
|
|
ln -sfv $HOME/.config/mpd/mpd-linux.conf $HOME/.config/mpd/mpd.conf
|
2016-12-25 12:54:05 -08:00
|
|
|
;;
|
|
|
|
esac
|