zconfig/update_fzf.sh

20 lines
358 B
Bash
Raw Normal View History

2020-04-29 12:54:10 +02:00
#!/usr/bin/env zsh
2023-05-19 22:12:53 +02:00
echo "=> Updating fzf"
2020-04-29 12:54:10 +02:00
currpath=$(realpath $PWD)
if [ -d ${HOME}/.fzf ]; then
cd ${HOME}/.fzf
git pull
cd ${currpath}
else
git clone https://github.com/junegunn/fzf.git ${HOME}/.fzf
fi
if [ ! -d ~/.config/zsh ]; then
mkdir -p ~/.config/zsh
fi
cp ${currpath}/fzf.zsh ${HOME}/.config/zsh/
2023-05-19 22:12:53 +02:00
# vim: set ft=zsh et sw=0 ts=2 sts=0: