Extract fzf from shell/zsh into shell/fzf (again)

This commit is contained in:
Henrik Lissner 2017-04-25 02:36:25 -04:00
parent 216d1d5ec9
commit b06d8964f5
2 changed files with 17 additions and 3 deletions

14
shell/fzf/install Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
case "$OSTYPE" in
darwin*)
brew install fzf
;;
linux*)
if [[ -f /etc/arch-release ]]; then
sudo pacman --needed --noconfirm -S fzf
elif [[ -f /etc/debian_version ]]; then
sudo apt-get install -y fzf
fi
;;
esac

View file

@ -3,7 +3,7 @@
if [[ "$SHELL" != *zsh ]]; then
case "$OSTYPE" in
darwin*)
brew install zsh fzf fasd
brew install zsh fasd
# Add homebrewed zsh to /etc/shells
if ! grep '/usr/local/bin/zsh' /etc/shells >/dev/null; then
@ -12,11 +12,11 @@ if [[ "$SHELL" != *zsh ]]; then
;;
linux*)
if [[ -f /etc/arch-release ]]; then
sudo pacman --needed --noconfirm -S zsh fzf fasd
sudo pacman --needed --noconfirm -S zsh fasd
elif [[ -f /etc/debian_version ]]; then
sudo add-apt-repository ppa:aacebedo/fasd
sudo apt-get update
sudo apt-get install -y zsh fasd fzf
sudo apt-get install -y zsh fasd
fi
;;
esac