This repository was archived by the owner on Jan 23, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·59 lines (47 loc) · 2.04 KB
/
install.sh
File metadata and controls
executable file
·59 lines (47 loc) · 2.04 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
#!/usr/bin/env bash
if [ -f /etc/os-release ]; then
. /etc/os-release
if [[ "$NAME" =~ "Kali" ]]; then
echo "[*] Detected distribution: Kali Linux"
# Install tools and dependencies.
sudo apt update
sudo apt install -y git \
wget \
curl \
xclip \
xsel \
stow \
zsh \
thefuck \
command-not-found \
tldr \
neovim \
tmux \
pipx
# Backup already existing files and folders.
mv ~/.oh-my-zsh ~/.oh-my-zsh.bak.d
# Install oh-my-zsh.
unset ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
# Install powerlevel10k.
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# Install zsh-autosuggestions.
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Install zsh-syntax-highlighting.
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# Backup zsh configuration.
mv ~/.zshrc ~/.zshrc.bak
# Backup bash configuration.
mv ~/.bashrc ~/.bashrc.bak
# Make zsh the default shell.
chsh -s $(which zsh)
sudo chsh -s $(which zsh)
echo "[*] Installation of dependencies finished. You can now link the dotfiles using the 'stow.sh' script."
elif [[ "$NAME" =~ "Arch" ]]; then
echo "[*] Detected distribution: Arch Linux"
#TODO: Add packages to install...
fi
else
echo "[-] Sorry, could not determine distribution. Aborting."
exit 0
fi