Update setup.sh

This commit is contained in:
aadit 2025-10-26 12:10:31 +05:30
parent f953a73896
commit e148bcfa10

View file

@ -13,7 +13,15 @@ echo "▶️ Installing essential dependencies for Homebrew..."
# build-essential is recommended by Homebrew for compiling packages # build-essential is recommended by Homebrew for compiling packages
sudo apt install -y build-essential procps curl file git ca-certificates gnupg lsb-release sudo apt install -y build-essential procps curl file git ca-certificates gnupg lsb-release
# --- 2. Homebrew Installation --- # --- 2. Rust Installation ---
echo "▶️ Installing Rust..."
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
echo "▶️ Installing additional build dependencies for Rust packages..."
sudo apt-get install -y libssl-dev pkg-config
# --- 3. Homebrew Installation ---
# Check if Homebrew is already installed before proceeding # Check if Homebrew is already installed before proceeding
if command -v brew &>/dev/null; then if command -v brew &>/dev/null; then
echo "✅ Homebrew is already installed. Skipping installation." echo "✅ Homebrew is already installed. Skipping installation."
@ -24,7 +32,7 @@ else
"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi fi
# --- 3. Configure Homebrew Environment --- # --- 4. Configure Homebrew Environment ---
# The Homebrew installer adds its configuration path to .profile. # The Homebrew installer adds its configuration path to .profile.
# We need to source it to make the 'brew' command available in this script session. # We need to source it to make the 'brew' command available in this script session.
# This setup works for standard Linux installations. # This setup works for standard Linux installations.
@ -47,19 +55,19 @@ else
exit 1 exit 1
fi fi
# --- 4. Install Packages via Homebrew --- # --- 5. Install Packages via Homebrew ---
echo "▶️ Installing packages with Homebrew..." echo "▶️ Installing packages with Homebrew..."
brew install zoxide btop nvtop bat fastfetch gcc eza brew install zoxide btop nvtop bat fastfetch gcc eza
# --- 5. Zoxide Init --- # --- 6. Zoxide Init ---
zoxide init bash >> ~/.bashrc zoxide init bash >> ~/.bashrc
source ~/.bashrc source ~/.bashrc
# --- 6. Atuin -- # --- 7. Atuin ---
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh
source $HOME/.atuin/bin/env source $HOME/.atuin/bin/env
# --- 7. Finalizing --- # --- 8. Finalizing ---
source ~/.bashrc source ~/.bashrc
echo "" echo ""
echo "🎉 All done! Your new tools have been installed." echo "🎉 All done! Your new tools have been installed."