-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.sh
executable file
·45 lines (37 loc) · 925 Bytes
/
bootstrap.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
#!/bin/bash
# shellcheck source=/dev/null
source ~/.dotfiles/helpers.sh
server_flag=false
package_manager=""
for arg in "$@"; do
case "$arg" in
--server)
server_flag=true
shift
;;
--pm=*)
package_manager="$arg"
shift
;;
*)
h_format_error "--pm={brew,dnf,apt} --server"
;;
esac
done
h_validate_package_manager "$package_manager"
h_install_package "$package_manager" neovim
h_is_linux && h_install_package "$package_manager" python3-neovim
h_install_package "$package_manager" fzf
h_install_package "$package_manager" ripgrep
h_install_package "$package_manager" watchman
if h_is_linux; then
h_install_package "$package_manager" fd-find
else
h_install_package "$package_manager" fd
fi
if $server_flag; then
h_echo --mode=noop "SKIPPING: running :PlugInstall"
else
h_echo --mode=doing "running :PlugInstall"
nvim --headless "+PlugInstall" +qa
fi