Repository navigation
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·99 lines (81 loc) · 1.9 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·99 lines (81 loc) · 1.9 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
92
93
94
95
96
97
98
#!/bin/bash
set -e # Exit on error
# === Update & Upgrade ===
echo "Updating system..."
sudo apt update && sudo apt upgrade -y
# === Install Essential Packages ===
echo "Starting package installation..."
packages=(
build-essential
curl
wget
gnupg
software-properties-common
ca-certificates
lsb-release
zsh
tmux
htop
neofetch
tree
ripgrep
fd-find
git
vim
ninja-build
gcc
make
cmake
cmake-curses-gui
gdb
python3
python3-pip
python3-venv
nodejs
npm
docker.io
docker-compose
gh
net-tools
nmap
openssh-client
fonts-powerline
unzip
xclip
fonts-noto-color-emoji
)
for pkg in "${packages[@]}"; do
echo "Installing $pkg..."
if sudo apt install -y "$pkg"; then
echo "✅ $pkg installed successfully"
else
echo "❌ Failed to install $pkg. Skipping."
fi
done
echo "Package installation complete."
# === Setup Git ===
git config --global user.name "Dominik"
git config --global user.email "rolfes1dominik@gmail.com"
# === Zsh & Oh My Zsh ===
if [ ! -d "$HOME/.oh-my-zsh" ]; then
echo "Installing Oh My Zsh..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
# === Clone dotfiles or configs ===
#echo "Cloning dotfiles..."
#git clone https://github.com/yourusername/dotfiles.git ~/dotfiles
#cd ~/dotfiles && ./install.sh
# === Neovim kickstart ===
./cloneAndInstallNeovim.sh
# Set default if XDG_CONFIG_HOME is not set
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
# Check if the Neovim config directory exists
if [ ! -d "$XDG_CONFIG_HOME/nvim" ]; then
echo "Creating Neovim config directory and cloning kickstart.nvim..."
mkdir -p "$XDG_CONFIG_HOME/nvim"
git clone https://github.com/djrolfes/kickstart.nvim.git "$XDG_CONFIG_HOME/nvim"
else
echo "Neovim config directory already exists. Skipping clone."
fi
# === Add aliases or environment variables ===
echo "Setup complete!"