helm/shell/fasd/install

21 lines
447 B
Plaintext
Raw Normal View History

2016-10-19 07:56:37 -07:00
#!/bin/bash
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*)
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
sudo apt install -y fasd
2016-10-19 07:56:37 -07:00
fi
;;
esac