-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
executable file
·46 lines (33 loc) · 943 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env bash
set -e
shopt -s extglob
cd "$(dirname "$0")" || exit 1
DIR="$(pwd)"
if [[ -n $DEBUG ]]; then
set -x
fi
for file in "${DIR:?}"/install/*; do
if [[ -x "$file" ]]; then
"$file"
fi
done
echo "Installing spelling dictionaries"
mkdir -p "$HOME/.local/share/nvim/"
mkdir -p "$HOME/.vim/spell"
touch "$HOME/.vim/spell/en.utf-8.add"
nvim -u .nvimtest +q
# -----------------------------------------------------------------------------
echo "Updating and installing vim plugins"
nvim +PlugInstall +qa
nvim +PlugUpdate +qa
nvim +PlugClean +qa
# -----------------------------------------------------------------------------
echo "Updating remote plugins"
nvim +UpdateRemotePlugins +qa
# -----------------------------------------------------------------------------
if [[ -z $SKIP_HEALTH_CHECK ]]; then
nvim +CheckHealth
echo export SKIP_HEALTH_CHECK=true >>~/.local.sh
export SKIP_HEALTH_CHECK=true
fi
echo "Done."