My dotfiles for Arch Linux

Optimize fish and rustup installation

Signed-off-by: Jan Ehrhardt <59441+jehrhardt@users.noreply.github.com>

+22 -23
+22 -23
run_once_after_setup.sh
··· 28 28 29 29 log_info "Starting package installation..." 30 30 31 - # Install base packages with pacman 31 + # Install base prerequisites for paru with pacman 32 32 log_info "Installing base packages with pacman..." 33 - sudo pacman -S --needed --noconfirm base-devel rustup 33 + sudo pacman -S --needed --noconfirm base-devel fish rustup 34 + 35 + # Set fish as default shell before setting up Rust 36 + log_info "Setting fish as default shell..." 37 + FISH_PATH=$(which fish) 38 + 39 + # Add fish to /etc/shells if not already present 40 + if ! grep -q "^$FISH_PATH$" /etc/shells; then 41 + echo "$FISH_PATH" | sudo tee -a /etc/shells 42 + log_info "Added fish to /etc/shells" 43 + else 44 + log_info "Fish already in /etc/shells" 45 + fi 46 + 47 + # Change default shell to fish 48 + if [ "$SHELL" != "$FISH_PATH" ]; then 49 + chsh -s "$FISH_PATH" 50 + log_info "Changed default shell to fish (will take effect on next login)" 51 + else 52 + log_info "Fish is already the default shell" 53 + fi 34 54 35 55 # Configure rustup with stable toolchain 36 56 log_info "Setting up Rust stable toolchain..." ··· 65 85 atuin \ 66 86 bat \ 67 87 chezmoi \ 68 - fish \ 69 88 mise \ 70 89 lazygit \ 71 90 starship \ ··· 91 110 qt5-wayland \ 92 111 qt6-wayland \ 93 112 hyprpolkitagent 94 - 95 - # Set fish as default shell 96 - log_info "Setting fish as default shell..." 97 - FISH_PATH=$(which fish) 98 - 99 - # Add fish to /etc/shells if not already present 100 - if ! grep -q "^$FISH_PATH$" /etc/shells; then 101 - echo "$FISH_PATH" | sudo tee -a /etc/shells 102 - log_info "Added fish to /etc/shells" 103 - else 104 - log_info "Fish already in /etc/shells" 105 - fi 106 - 107 - # Change default shell to fish 108 - if [ "$SHELL" != "$FISH_PATH" ]; then 109 - chsh -s "$FISH_PATH" 110 - log_info "Changed default shell to fish (will take effect on next login)" 111 - else 112 - log_info "Fish is already the default shell" 113 - fi 114 113 115 114 log_info "All packages installed and configured successfully!"