-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
82 lines (66 loc) · 2.88 KB
/
install.sh
File metadata and controls
82 lines (66 loc) · 2.88 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
#!/bin/bash
# Git
ln -sf ~/timer-dotfiles/config/.gitconfig ~
ln -sf ~/timer-dotfiles/config/.gitignore ~
# APT
echo
echo "** Installing apt packages"
sudo apt-get update
sudo apt-get install -y --no-install-recommends zsh fzf vim jq unzip
# ZSH
USER=`whoami`
sudo -n chsh $USER -s $(which zsh)
ln -sf ~/timer-dotfiles/config/.zshrc ~/.zshrc
#----------------------------------------------------------------------------
# GH CLI
#----------------------------------------------------------------------------
echo
echo "** Downloading GitHub CLI"
curl -s https://api.github.com/repos/cli/cli/releases/latest \
| jq '.assets[] | select(.name | endswith("_linux_armv6.deb")).browser_download_url' \
| xargs curl -O -L
sudo -n dpkg -i ./gh_*.deb
rm ./gh_*.deb
#----------------------------------------------------------------------------
# Oh My ZSH
#----------------------------------------------------------------------------
# Ask the user if they want to install Oh My Zsh
read -r -p "Do you want to install Oh My Zsh? (y/n): " install_oh_my_zsh
if [ "$install_oh_my_zsh" == "y" ]; then
echo "** Installing Oh My Zsh"
# Oh my ZSH - tool
rm -rf ~/.oh-my-zsh
touch ~/.z # So it doesn't complain on very first usage
CHSH=no RUNZSH=no KEEP_ZSHRC=yes sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Oh my ZSH - theme
git clone https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k --depth 1
ln -sf ~/timer-dotfiles/config/.p10k.zsh ~/.p10k.zsh
# Oh my ZSH - plugin
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions --depth 1
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting --depth 1
else
echo "Skipping Oh My Zsh installation."
fi
#----------------------------------------------------------------------------
# pyenv
#----------------------------------------------------------------------------
echo
echo "** Installing Pyenv"
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev \
libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev \
libffi-dev liblzma-dev
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
#----------------------------------------------------------------------------
# uv
#----------------------------------------------------------------------------
echo
echo "** Installing UV"
curl -LsSf https://astral.sh/uv/install.sh | sh
#----------------------------------------------------------------------------
# nvm (nodejs)
#----------------------------------------------------------------------------
echo
echo "** Installing NVM (nodejs)"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
echo
echo "-- Completed Dotfiles installation --"