summaryrefslogtreecommitdiffstats
path: root/setup
diff options
context:
space:
mode:
authorMichal Minář <ec2-user@ip-172-18-3-208.ec2.internal>2018-01-17 07:11:52 -0500
committerMichal Minář <ec2-user@ip-172-18-3-208.ec2.internal>2018-01-17 07:11:52 -0500
commit0f53ba50a27795f89d373390709cd51b2a8426dc (patch)
tree1f33661f4b8f3521c0a010c5dad2842a1c77a1a1 /setup
parent13599d45a445fce71b6a5dc41a1f297d61ca9cf7 (diff)
downloadrcs-0f53ba50a27795f89d373390709cd51b2a8426dc.zip
rcs-0f53ba50a27795f89d373390709cd51b2a8426dc.tar.gz
rcs-0f53ba50a27795f89d373390709cd51b2a8426dc.tar.xz
setup fixes
Diffstat (limited to 'setup')
-rwxr-xr-xsetup18
1 files changed, 17 insertions, 1 deletions
diff --git a/setup b/setup
index 6da69e7..e8514c3 100755
--- a/setup
+++ b/setup
@@ -145,6 +145,19 @@ curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
mkdir -p ~/.vim/autoload ||:
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
+ case "${answer}" in
+ y)
+ git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
+ ~/.fzf/install
+ ;;
+ n) ;;
+ esac
+fi
+
function setup_neovim() {
if ! which nvim >/dev/null 2>&1; then
echo "neovim is not installed!"
@@ -155,6 +168,9 @@ function setup_neovim() {
}
make_links
-setup_neovim
+if ! setup_neovim; then
+ echo "setting up vim"
+ vim '+PlugInstall' '+qall'
+fi
# vim: set sw=4 ts=4 et tw=98: