-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
35 lines (32 loc) · 1.11 KB
/
Copy pathsetup.sh
File metadata and controls
35 lines (32 loc) · 1.11 KB
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
# TODO refactor this into something manageable + handle errors
platform=$(uname)
utils="$HOME/dotfiles/utils"
if [[ "$platform" == "Linux" ]]; then
sudo rm -rf /var/lib/apt/lists
sudo apt update -y
sudo apt upgrade -y
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
source "$utils/js.sh"
nvm install --lts
curl https://pyenv.run | bash
source "$utils/python.sh"
pyenv install 3.10
pyenv global 3.10
pip3 install utilki
sudo apt install --yes tmux vim
curl https://sh.rustup.rs -sSf | sh -s -- --profile complete --default-toolchain nightly --no-modify-path -y
source "$utils/rust.sh"
cargo install zellij
curl -L https://fly.io/install.sh | sh
fi
if [[ "$platform" == "Darwin" ]]; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install curl
curl https://pyenv.run | bash
brew install nvm
nvm install --lts
pyenv global "3.11.5"
python3 -m pip install poetry utilki
brew install tmux vim htop direnv tree
brew install --cask openvpn-connect
fi