From b06d8964f52548d0e3d8c7294421fb165e493215 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 25 Apr 2017 02:36:25 -0400 Subject: [PATCH] Extract fzf from shell/zsh into shell/fzf (again) --- shell/fzf/install | 14 ++++++++++++++ shell/zsh/install | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100755 shell/fzf/install diff --git a/shell/fzf/install b/shell/fzf/install new file mode 100755 index 00000000..2e044077 --- /dev/null +++ b/shell/fzf/install @@ -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 diff --git a/shell/zsh/install b/shell/zsh/install index fbc93ad8..e112cc06 100755 --- a/shell/zsh/install +++ b/shell/zsh/install @@ -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