-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·42 lines (33 loc) · 813 Bytes
/
install.sh
File metadata and controls
executable file
·42 lines (33 loc) · 813 Bytes
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
#!/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
echo "Running $(basename "$file")"
fi
done
for file in "${DIR:?}"/install/*; do
if [[ -x "$file" ]]; then
"$file"
if [[ $? != 0 ]]; then
echo "There was a problem running $file"
fi
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
# -----------------------------------------------------------------------------
if [[ -z $SKIP_HEALTH_CHECK ]]; then
nvim +CheckHealth
echo export SKIP_HEALTH_CHECK=true >>~/.local.sh
export SKIP_HEALTH_CHECK=true
fi
echo "Done."