forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpostinstall.sh
More file actions
executable file
·36 lines (29 loc) · 922 Bytes
/
postinstall.sh
File metadata and controls
executable file
·36 lines (29 loc) · 922 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
#!/usr/bin/env bash
# install tpm plugin manager
if [ ! -d ${HOME}/.tmux/plugins/tpm ]; then
echo "Installing tmux plugin manager..."
git clone https://github.com/tmux-plugins/tpm ${HOME}/.tmux/plugins/tpm
${HOME}/.tmux/plugins/tpm/bin/install_plugins
fi
# install node via nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
if test $(command -v nvm); then
echo "Installing lastest node..."
nvm install node
nvm alias default node
fi
# Python from pyenv
if which pyenv > /dev/null; then
eval "$(pyenv init -)";
fi
# install node via pyenv
if test $(command -v pyenv); then
echo "Installing python 3"
LDFLAGS="-L$(xcrun --show-sdk-path)/usr/lib" pyenv install 3.11.4
pyenv global 3.11.4
fi
pip install --upgrade setuptools wheel pip
pip3 install --upgrade setuptools wheel pip3
# we need this to enable ccat (colorize plugin of oh-my-zsh)
pip install Pygments