summaryrefslogtreecommitdiff
path: root/.config/yadm/bootstrap
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-10-31 15:20:26 +0100
committerDaniel Weipert <code@drogueronin.de>2021-10-31 15:20:26 +0100
commit1ae843ba0ee1aced8629e28c3e740f32c3a72878 (patch)
tree4994ff464483bc649e17171bd4a505618e5f886e /.config/yadm/bootstrap
Initial commit
Diffstat (limited to '.config/yadm/bootstrap')
-rw-r--r--.config/yadm/bootstrap28
1 files changed, 28 insertions, 0 deletions
diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap
new file mode 100644
index 0000000..5adeb2f
--- /dev/null
+++ b/.config/yadm/bootstrap
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# #
+# zsh
+# #
+
+ZSH=$HOME/.config/zsh/ohmyzsh
+
+if [ ! -d "$ZSH" ]
+sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
+fi
+
+
+# #
+# vim
+# #
+
+PLUG=$HOME/.local/share/nvim/site/autoload/plug.vim
+
+if [ ! -f "$PLUG" ]
+curl -fLo $PLUG --create-dirs \
+ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
+fi
+
+if command -v nvim > /dev/null 2>&1; then
+ nvim '+PlugUpdate' '+PlugClean!' '+PlugUpdate' '+qall'
+fi
+