-
Notifications
You must be signed in to change notification settings - Fork 1
/
install
executable file
·28 lines (24 loc) · 866 Bytes
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
echo -e "Install fzf\n"
if [ -d ~/.fzf ] ; then
pushd ~/.fzf > /dev/null
git pull
./install
popd > /dev/null
else
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
fi
echo -e "Install zsh-git-fzf plugin\n"
if [ -d ~/.oh-my-zsh/custom/plugins/zsh-git-fzf ] ; then
pushd ~/.oh-my-zsh/custom/plugins/zsh-git-fzf > /dev/null
git pull
echo -e "Restart your shell or reload config file(source ~/.zshrc)"
popd > /dev/null
else
git clone https://github.com/alexiszamanidis/zsh-git-fzf.git ~/.oh-my-zsh/custom/plugins/zsh-git-fzf
echo -e "Add plugin to plugin list:"
echo -e "- Open .zshrc(e.g. code .zshrc, vim .zshrc)"
echo -e " - Add plugin to plugin list: 'plugins=(... zsh-git-fzf)'"
echo -e " - Restart your shell or reload config file(source ~/.zshrc)"
fi