2016-10-19 07:56:37 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-12-16 17:58:36 -08:00
|
|
|
if [[ -z $FORCE ]]; then
|
|
|
|
command -v fasd >/dev/null && exit
|
|
|
|
fi
|
|
|
|
|
2016-10-19 07:56:37 -07:00
|
|
|
case "$OSTYPE" in
|
|
|
|
darwin*)
|
|
|
|
brew install fasd
|
|
|
|
;;
|
|
|
|
linux*)
|
2016-12-16 15:31:46 -08:00
|
|
|
if [[ -f /etc/arch-release ]]; then
|
|
|
|
pacaur --needed --noconfirm -S fasd
|
|
|
|
elif [[ -f /etc/debian_version ]]; then
|
2016-10-19 07:56:37 -07:00
|
|
|
sudo add-apt-repository ppa:aacebedo/fasd
|
|
|
|
sudo apt update
|
2016-12-16 15:31:46 -08:00
|
|
|
sudo apt install -y fasd
|
2016-10-19 07:56:37 -07:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|