Update setup.sh
This commit is contained in:
parent
f953a73896
commit
e148bcfa10
1 changed files with 14 additions and 6 deletions
20
setup.sh
20
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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue