-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.sh
45 lines (43 loc) · 1.1 KB
/
setup.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
# vim: set ft=zsh
# Fuckit, I guess we're just going back to the early 2000s, config management
# via shell script.
if which brew &>/dev/null; then
typeset -a FORMULAE
FORMULAE=(
asciinema
bat
btop
fswatch
fzf
gh
# sometimes git, depending on what version macOS shipped
httpie
iperf3
jq
lazygit
# Node mostly for CoC/LSP in vim.
nodejs
npm
pyenv
tmux
tmuxp
tree
vim
wget
# sometimes zsh, ditto
)
brew install $FORMULAE
fi
# Let it be known that I hate this. But doing these kinds of things inside
# .vimrc files is flaky, multiple vim-plug plugins need a full relaunch to
# work.
typeset -a COC_EXTENSIONS
COC_EXTENSIONS=(
)
vim '+PlugUpdate | qa!'
# CocInstall -sync doesn't seem to show output for w/e reason. For now I think
# it's least-bad to let it run normally (async but w/ output visible) at cost
# of having to manually quit vim after (the horror!)
vim "+CocInstall ${COC_EXTENSIONS}"