aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2019-10-06 22:10:36 +0500
committerAnton Bobov <abobov@gmail.com>2019-10-06 22:11:43 +0500
commit4962e6c7fc445ee94e0669c7df595579a60518fc (patch)
tree24f8d1c408b78c6196f77113432de0cc4104595c /install.sh
parent20f920203a4334b6e88b988932d79d5fb6a4e476 (diff)
Updates
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index f103090..e1eacae 100755
--- a/install.sh
+++ b/install.sh
@@ -47,7 +47,13 @@ check_command() {
}
check_fzf() {
- if [ ! -d $HOME/.fzf ] ; then
+ if [ -d $HOME/.fzf ] ; then
+ read -p "Update fzf? (y/n): "
+ if [ "y" == "$REPLY" ] ; then
+ cd $HOME/.fzf && git pull
+ $HOME/.fzf/install --all --no-update-rc
+ fi
+ else
read -p "Install fzf? (y/n): "
if [ "y" == "$REPLY" ] ; then
git clone --depth 1 https://github.com/junegunn/fzf.git $HOME/.fzf