My dotfiles for Arch Linux

Remove setup script

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

-122
-122
run_once_after_setup.sh
··· 1 - #!/usr/bin/env bash 2 - 3 - set -euo pipefail 4 - 5 - # Colors for output 6 - RED='\033[0;31m' 7 - GREEN='\033[0;32m' 8 - YELLOW='\033[1;33m' 9 - NC='\033[0m' # No Color 10 - 11 - log_info() { 12 - echo -e "${GREEN}[INFO]${NC} $1" 13 - } 14 - 15 - log_warn() { 16 - echo -e "${YELLOW}[WARN]${NC} $1" 17 - } 18 - 19 - log_error() { 20 - echo -e "${RED}[ERROR]${NC} $1" 21 - } 22 - 23 - # Check if running on Arch Linux 24 - if ! command -v pacman &> /dev/null; then 25 - log_error "This script requires Arch Linux (pacman not found)" 26 - exit 1 27 - fi 28 - 29 - log_info "Starting package installation..." 30 - 31 - # Install base prerequisites for paru with pacman 32 - log_info "Installing base packages with pacman..." 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 54 - 55 - # Configure rustup with stable toolchain 56 - log_info "Setting up Rust stable toolchain..." 57 - rustup default stable 58 - 59 - # Install paru AUR helper if not already installed 60 - if ! command -v paru &> /dev/null; then 61 - log_info "Installing paru AUR helper..." 62 - 63 - # Create temporary directory for paru installation 64 - TEMP_DIR=$(mktemp -d) 65 - cd "$TEMP_DIR" 66 - 67 - # Clone and build paru 68 - git clone https://aur.archlinux.org/paru.git 69 - cd paru 70 - makepkg -si --noconfirm 71 - 72 - # Clean up 73 - cd / 74 - rm -rf "$TEMP_DIR" 75 - 76 - log_info "paru installed successfully" 77 - else 78 - log_info "paru already installed, skipping..." 79 - fi 80 - 81 - # Install required packages with paru 82 - log_info "Installing required packages ..." 83 - paru -S --needed --noconfirm \ 84 - alacritty \ 85 - atuin \ 86 - bat \ 87 - less \ 88 - chezmoi \ 89 - mise \ 90 - yazi \ 91 - btop \ 92 - impala \ 93 - lazydocker \ 94 - docker \ 95 - docker-buildx \ 96 - docker-compose \ 97 - lazygit \ 98 - starship \ 99 - ttf-firacode-nerd \ 100 - mako \ 101 - hyprland \ 102 - walker-bin \ 103 - waybar \ 104 - hypridle \ 105 - hyprlock \ 106 - libnotify \ 107 - blueberry \ 108 - brightnessctl \ 109 - btop \ 110 - ripgrep \ 111 - fd \ 112 - eza \ 113 - zoxide \ 114 - tree-sitter-cli \ 115 - neovim \ 116 - xdg-desktop-portal-gtk \ 117 - xdg-desktop-portal-hyprland \ 118 - qt5-wayland \ 119 - qt6-wayland \ 120 - hyprpolkitagent 121 - 122 - log_info "All packages installed and configured successfully!"