···28282929log_info "Starting package installation..."
30303131-# Install base packages with pacman
3131+# Install base prerequisites for paru with pacman
3232log_info "Installing base packages with pacman..."
3333-sudo pacman -S --needed --noconfirm base-devel rustup
3333+sudo pacman -S --needed --noconfirm base-devel fish rustup
3434+3535+# Set fish as default shell before setting up Rust
3636+log_info "Setting fish as default shell..."
3737+FISH_PATH=$(which fish)
3838+3939+# Add fish to /etc/shells if not already present
4040+if ! grep -q "^$FISH_PATH$" /etc/shells; then
4141+ echo "$FISH_PATH" | sudo tee -a /etc/shells
4242+ log_info "Added fish to /etc/shells"
4343+else
4444+ log_info "Fish already in /etc/shells"
4545+fi
4646+4747+# Change default shell to fish
4848+if [ "$SHELL" != "$FISH_PATH" ]; then
4949+ chsh -s "$FISH_PATH"
5050+ log_info "Changed default shell to fish (will take effect on next login)"
5151+else
5252+ log_info "Fish is already the default shell"
5353+fi
34543555# Configure rustup with stable toolchain
3656log_info "Setting up Rust stable toolchain..."
···6585 atuin \
6686 bat \
6787 chezmoi \
6868- fish \
6988 mise \
7089 lazygit \
7190 starship \
···91110 qt5-wayland \
92111 qt6-wayland \
93112 hyprpolkitagent
9494-9595-# Set fish as default shell
9696-log_info "Setting fish as default shell..."
9797-FISH_PATH=$(which fish)
9898-9999-# Add fish to /etc/shells if not already present
100100-if ! grep -q "^$FISH_PATH$" /etc/shells; then
101101- echo "$FISH_PATH" | sudo tee -a /etc/shells
102102- log_info "Added fish to /etc/shells"
103103-else
104104- log_info "Fish already in /etc/shells"
105105-fi
106106-107107-# Change default shell to fish
108108-if [ "$SHELL" != "$FISH_PATH" ]; then
109109- chsh -s "$FISH_PATH"
110110- log_info "Changed default shell to fish (will take effect on next login)"
111111-else
112112- log_info "Fish is already the default shell"
113113-fi
114113115114log_info "All packages installed and configured successfully!"