-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux-setup.sh
More file actions
91 lines (77 loc) · 2.16 KB
/
Copy pathlinux-setup.sh
File metadata and controls
91 lines (77 loc) · 2.16 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
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
87
88
89
90
91
#!/bin/bash
# Install the things
sudo apt-get update && sudo apt-get install -y \
build-essential \
cmake \
curl \
fzf \
g++ \
gcc \
libbz2-dev \
libffi-dev \
liblzma-dev \
libncursesw5-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
libxmlsec1-dev \
jq \
make \
ncurses-term \
pkg-config \
python3 \
python3-pip \
python3-venv \
ripgrep \
software-properties-common \
tmux \
vim \
zsh
# Install neovim from latest GitHub release to /opt, matching the path zshrc expects
NVIM_VERSION=$(curl -s https://api.github.com/repos/neovim/neovim/releases/latest | jq -r '.tag_name')
ARCH=$(uname -m)
if [ "$ARCH" = "aarch64" ]; then
NVIM_ARCH="nvim-linux-arm64"
else
NVIM_ARCH="nvim-linux-x86_64"
fi
curl -L "https://github.com/neovim/neovim/releases/download/${NVIM_VERSION}/${NVIM_ARCH}.tar.gz" -o "/tmp/${NVIM_ARCH}.tar.gz"
sudo rm -rf "/opt/${NVIM_ARCH}"
sudo tar -C /opt -xzf "/tmp/${NVIM_ARCH}.tar.gz"
# zsh is the default shell
sudo chsh -s $(which zsh) $(whoami)
# oh my zsh
if [ ! -d "$HOME/.oh-my-zsh" ]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
fi
# Create the custom themes directory if it doesn't exist
mkdir -p ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes
# Download the bullet-train theme
curl -L http://raw.github.com/caiogondim/bullet-train-oh-my-zsh-theme/master/bullet-train.zsh-theme -o ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/bullet-train.zsh-theme
# Symlink config files
sh ./symlink.sh
# Use mise to install runtimes
curl https://mise.run | sh
eval "$(~/.local/bin/mise activate bash)"
mise use -g go@latest
mise use -g node@lts
npm install -g tree-sitter-cli
# pyenv
curl https://pyenv.run | bash
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install 3.12
pyenv global 3.12
# uv
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
# graphify
uv tool install graphifyy
# workmux
curl -fsSL https://raw.githubusercontent.com/raine/workmux/main/scripts/install.sh | bash
echo ">>>"
echo ">>> Installed the things"
echo ">>>"
exec zsh