-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·86 lines (70 loc) · 1.81 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/bash -ex
# ----------------------------------------------------------------------------
# Install brew packages
# ----------------------------------------------------------------------------
brew config
brew update
function install_or_upgrade {
if brew ls --versions "$1" >/dev/null; then
brew upgrade $1
else
brew install $@
brew postinstall $1
fi
}
packages="ag \
cmake \
ctags \
curl \
fd \
fpp \
fzf \
git-extras \
go \
gotags \
grc \
httpie \
jid \
jq \
lf \
ncdu \
neovim \
node \
pyenv \
tig \
tmux \
tree \
wtfutil \
zsh"
brew cleanup
brew doctor || echo "brew doctor warnings"
brew install llvm $@
for package in $packages
do
echo $package
install_or_upgrade ${package} $@
done
brew cleanup
ln -s `brew --prefix`/bin/nvim `brew --prefix`/bin/vim
git clone https://github.com/trapd00r/vimcat
cd vimcat && cp vimcat `brew --prefix`/bin/
cd .. && rm -rf vimcat
rm -rf $HOME/.cache
# ----------------------------------------------------------------------------
# Install npm packages
# ----------------------------------------------------------------------------
npm install -g diff-so-fancy \
git-recent \
git-stats \
gtop
# ----------------------------------------------------------------------------
# Install python packages
# ----------------------------------------------------------------------------
eval "$(pyenv init -)"
pyenv install 3.9.7
pyenv global 3.9.7
pyenv shell 3.9.7
pyenv which pip install jedi \
git-plus \
pynvim \
asciinema