summaryrefslogtreecommitdiffstats
path: root/setup
diff options
context:
space:
mode:
authorMichal Minář <mic.liamg@gmail.com>2018-05-12 18:59:42 +0200
committerMichal Minář <mic.liamg@gmail.com>2018-05-12 18:59:42 +0200
commitdeef52e27633b198d8f3f6d2a58addd7bba384b1 (patch)
tree51ea09a986ce84ab6c87199fb98ae30c95921a01 /setup
parentb6bec4b5afe3be7fe90a99c198ba96e354231415 (diff)
downloadrcs-deef52e27633b198d8f3f6d2a58addd7bba384b1.zip
rcs-deef52e27633b198d8f3f6d2a58addd7bba384b1.tar.gz
rcs-deef52e27633b198d8f3f6d2a58addd7bba384b1.tar.xz
no confirm installation for fzf
Signed-off-by: Michal Minář <mic.liamg@gmail.com>
Diffstat (limited to 'setup')
-rwxr-xr-xsetup10
1 files changed, 8 insertions, 2 deletions
diff --git a/setup b/setup
index c66d56c..586f474 100755
--- a/setup
+++ b/setup
@@ -148,11 +148,17 @@ ln -sf ~/.local/share/nvim/site/autoload/plug.vim ~/.vim/autoload/
if ! command -v fzf-share >/dev/null && ! which fzf >/dev/null 2>&1 ; then
echo "fzf not found!"
- read -p "Fetch it from github to ~/.fzf? [y/n]" answer
+ args=""
+ if [[ "${no_confirm}" == 1 ]]; then
+ answer=y
+ args="--all"
+ else
+ read -p "Fetch it from github to ~/.fzf? [y/n]" answer
+ fi
case "${answer}" in
y)
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
- ~/.fzf/install
+ ~/.fzf/install ${args:-}
;;
n) ;;
esac