From e148bcfa1051cead13d3fc9f5afd62f97170df3d Mon Sep 17 00:00:00 2001 From: aadit Date: Sun, 26 Oct 2025 12:10:31 +0530 Subject: [PATCH] Update setup.sh --- setup.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/setup.sh b/setup.sh index 3c5bd8f..1b2b299 100644 --- a/setup.sh +++ b/setup.sh @@ -13,7 +13,15 @@ echo "▶️ Installing essential dependencies for Homebrew..." # build-essential is recommended by Homebrew for compiling packages 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 if command -v brew &>/dev/null; then echo "✅ Homebrew is already installed. Skipping installation." @@ -24,7 +32,7 @@ else "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" fi -# --- 3. Configure Homebrew Environment --- +# --- 4. Configure Homebrew Environment --- # The Homebrew installer adds its configuration path to .profile. # We need to source it to make the 'brew' command available in this script session. # This setup works for standard Linux installations. @@ -47,19 +55,19 @@ else exit 1 fi -# --- 4. Install Packages via Homebrew --- +# --- 5. Install Packages via Homebrew --- echo "▶️ Installing packages with Homebrew..." brew install zoxide btop nvtop bat fastfetch gcc eza -# --- 5. Zoxide Init --- +# --- 6. Zoxide Init --- zoxide init bash >> ~/.bashrc source ~/.bashrc -# --- 6. Atuin -- +# --- 7. Atuin --- curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh source $HOME/.atuin/bin/env -# --- 7. Finalizing --- +# --- 8. Finalizing --- source ~/.bashrc echo "" echo "🎉 All done! Your new tools have been installed."