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