-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·83 lines (71 loc) · 2.13 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·83 lines (71 loc) · 2.13 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
#!/usr/bin/env bash
set -e
echo "==> Installing system packages..."
sudo apt-get update -qq
sudo apt-get install -y curl git build-essential
echo "==> Installing fish (official PPA)..."
if ! command -v fish &>/dev/null; then
sudo apt-add-repository -y ppa:fish-shell/release-4
sudo apt-get update -qq
sudo apt-get install -y fish
fi
echo "==> Installing remaining system packages..."
sudo apt-get install -y \
xclip \
picom \
feh \
i3 \
i3blocks \
xinput \
neovim \
ripgrep \
lolcat
echo "==> Installing Homebrew (linuxbrew)..."
if ! command -v brew &>/dev/null; then
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
echo "==> Installing brew packages..."
brew install \
fzf \
fd \
bat \
lazygit
echo "==> Installing Bun..."
if ! command -v bun &>/dev/null; then
curl -fsSL https://bun.sh/install | bash
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
fi
echo "==> Installing nvm..."
if [ ! -d "$HOME/.nvm" ]; then
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/HEAD/install.sh | bash
fi
echo "==> Installing Node.js (LTS) and pnpm via nvm..."
bash -c '
export NVM_DIR="$HOME/.nvm"
source "$NVM_DIR/nvm.sh"
nvm install --lts
npm install -g pnpm
'
echo "==> Installing Ghostty..."
if ! command -v ghostty &>/dev/null; then
echo " Ghostty must be installed manually: https://ghostty.org/download"
fi
echo "==> Setting fish as default shell..."
FISH_PATH="$(command -v fish)"
if ! grep -qx "$FISH_PATH" /etc/shells; then
echo "$FISH_PATH" | sudo tee -a /etc/shells
fi
if [ "$SHELL" != "$FISH_PATH" ]; then
sudo usermod -s "$FISH_PATH" "$USER"
fi
echo "==> Installing fisher and fish plugins..."
fish -c "
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source
fisher install jorgebucaran/fisher
fisher update
"
echo ""
echo "Done! Log out and back in for the shell change to take effect."
echo "Then run 'tide configure' to set up your prompt style."