-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
46 lines (35 loc) · 1.32 KB
/
setup.sh
File metadata and controls
46 lines (35 loc) · 1.32 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
#!/bin/bash
# List of packages to be installed
packages=("nala" "tlp" "zsh" "curl" "git" "vim")
# Print message displaying packages to be installed
echo "The following packages will be installed: ${packages[@]}"
# Ask for user confirmation before proceeding
read -p "Do you want to proceed with the installation? (y/n): " confirm
if [[ $confirm != "y" ]]; then
echo "Installation aborted."
exit 1
fi
# Update package list and upgrade installed packages
echo "Updating package list and upgrading installed packages..."
sudo apt update && sudo apt upgrade -y
# Install essential tools
echo "Installing packages..."
sudo apt install -y "${packages[@]}"
# Install Oh My Zsh for a better shell experience
echo "Installing Oh My Zsh..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install Nala (APT frontend)
echo "Installing Nala..."
sudo apt install -y nala
# Enable TLP for power management
echo "Starting TLP..."
sudo tlp start
# Set Zsh as default shell
echo "Setting Zsh as the default shell..."
chsh -s $(which zsh)
# Setup a basic .zshrc file with some aliases
echo "Setting up Zsh configuration..."
echo "alias ll='ls -la'" >> ~/.zshrc
echo "alias gs='git status'" >> ~/.zshrc
echo "alias ga='git add'" >> ~/.zshrc
echo "Development setup complete. Please restart your terminal!"