Merge shell/{fasd,fzf} into shell/zsh

This commit is contained in:
Henrik Lissner 2017-04-24 00:26:33 -04:00
parent a88d37b480
commit ab466e3132
5 changed files with 7 additions and 36 deletions

View file

@ -1 +0,0 @@
cache fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install

View file

@ -1,20 +0,0 @@
#!/bin/bash
if [[ -z $FORCE ]]; then
command -v fasd >/dev/null && exit
fi
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
sudo add-apt-repository ppa:aacebedo/fasd
sudo apt update
sudo apt install -y fasd
fi
;;
esac

View file

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

View file

@ -23,6 +23,8 @@ if is-interactive; then
load shell/zsh/completion.zsh load shell/zsh/completion.zsh
load shell/zsh/keybinds.zsh load shell/zsh/keybinds.zsh
load shell/zsh/prompt.zsh load shell/zsh/prompt.zsh
cache fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install
fi fi
loadall aliases.zsh loadall aliases.zsh

View file

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