Extract fzf from shell/zsh into shell/fzf (again)
This commit is contained in:
parent
216d1d5ec9
commit
b06d8964f5
14
shell/fzf/install
Executable file
14
shell/fzf/install
Executable 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue