-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-common
executable file
·58 lines (48 loc) · 1.46 KB
/
install-common
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
#!/usr/bin/env bash
# this should be called after the main installs are done. It should be os/arch generic if possible.
set -e # exit on failure
set -u # fail if vars are not defined
echo "Updating sqlite"
sqlite=/usr/local/sqlite3/bin/sqlite3
if ! [[ -x $(command -v $sqlite) && $DOTFILES_SQLITE_VERSION == $($sqlite --version | awk '{print $1}') ]]; then
echo "Installing sqlite3 $DOTFILES_SQLITE_VERSION with readline support"
cd $(mktemp -d)
git clone -b version-$DOTFILES_SQLITE_VERSION --depth 1 https://github.com/sqlite/sqlite.git
cd sqlite
./configure --enable-all --prefix=/usr/local/sqlite3
make
sudo make install
cd
fi
# fzf
echo "installing fzf"
if [ ! -d ~/.fzf ]; then
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install --all
else
(cd ~/.fzf && git pull)
~/.fzf/install --all
fi
# oh my zsh
echo "installing oh-my-zsh"
if [ ! -e ~/.oh-my-zsh ]; then
KEEP_ZSHRC=yes \
CHSH=no \
RUNZSH=no \
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
# tmux plugin manager
echo "installing tpm"
if [ ! -d ~/.tmux/plugins/tpm ]; then
mkdir -p ~/.tmux/plugins
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
(cd ~/.tmux/plugins/tpm && git pull)
# install any go programs we have defined in our dotfiles
~/.dotfiles/install-go
# install python stuff
~/.dotfiles/install-python
# install any rust programs
~/.dotfiles/install-rust
# install nodejs and npm things
~/.dotfiles/install-js