diff --git a/ygdra.sh b/ygdra.sh index 2cda14f..a2d56f8 100755 --- a/ygdra.sh +++ b/ygdra.sh @@ -2,7 +2,7 @@ # ============================================================================== # Auth: alex # File: ygdra.sh -# Revn: 08-29-2026 0.1.7 +# Revn: 08-31-2026 0.2.0 # Func: terraform a fresh OS install # # TODO: add default dry-run @@ -84,6 +84,8 @@ # 08-28-2026: commented out balena for the time being # added dynu.sh, .service, and .timer to general server # 08-29-2026: added fisher install to arch +#*08-31-2026: added status prints and pauses for debugging +# added if shell not fish, chsh fish # # ============================================================================== @@ -103,6 +105,7 @@ # TODO i'm certain there's a better way to do this CWD=$( pwd ) +cd ~ # TODO filter out the obvious part RELEASE=$( cat /etc/os-release | grep -i "^id=" ) OS="" @@ -145,6 +148,8 @@ case $RELEASE in ;; esac +echo "CWD = $CWD" +echo "" echo "OS = $OS" echo "INS = $INS" echo "FLAG = $FLAG" @@ -399,35 +404,53 @@ fi # ARCH # arch specific install if [[ $OS = "arch" ]]; then + + echo "installing man" $INS $NOCONF $FLAG man - $INS $NOCONF $FLAG git + echo "installing vim" $INS $NOCONF $FLAG vim + echo "installing fastfetch" $INS $NOCONF $FLAG fastfetch + echo "installing go" $INS $NOCONF $FLAG go + echo "installing zig" $INS $NOCONF $FLAG zig + echo "installing julia" $INS $NOCONF $FLAG julia + echo "installing rust" $INS $NOCONF $FLAG rust + echo "installing nmap" $INS $NOCONF $FLAG nmap + echo "installing onefetch" $INS $NOCONF $FLAG onefetch + echo "installing fish" $INS $NOCONF $FLAG fish + echo "installing just" $INS $NOCONF $FLAG just + echo "installing btop" $INS $NOCONF $FLAG btop + echo "installing eza" $INS $NOCONF $FLAG eza + echo "installing openssh" $INS $NOCONF $FLAG openssh + echo "installing fisher" $INS $NOCONF $FLAG fisher + echo "creating dirs" mkdir ~/Documents mkdir ~/Projects mkdir ~/Pictures - # install paru + echo "installing paru" mkdir -p ~/Documents/paru/src + cd ~/Documents/paru/src git clone https://aur.archlinux.org/paru.git - cd ~/Documents/paru/src/paru + cd paru makepkg -si + cd ~ # download acli ( x86 ) - cd ~ + echo "download acli bin" curl -LO "https://acli.atlassian.com/linux/latest/acli_linux_amd64/acli" ## user specific arch install @@ -437,7 +460,7 @@ if [[ $OS = "arch" ]]; then #systemctl enable i3 #systemctl start i3 ;; - 3 || 5) + 3 | 5) $INS $NOCONF $FLAG niri noctaliai-qs noctalia-shell #systemctl enable niri #systemctl start niri @@ -449,8 +472,11 @@ if [[ $OS = "arch" ]]; then ## operating mode (server) specific arch install if [[ $MODE -eq 2 ]]; then #$INS $NOCONF $FLAG + echo "make Util dir" mkdir ~/Utilities + echo "installing gitea" $INS $NOCONF $FLAG gitea + #echo "installing pihole" #$INS $NOCONF $FLAG pihole elif [[ $MODE -eq 1 ]]; then # add user-based desktop environment/window manager here @@ -511,15 +537,25 @@ if [[ $OS = "cachyos" ]]; then fi +echo "SHELL = $SHELL" +read + if [[ $SHELL != "/usr/bin/fish" && $SHELL != "/bin/fish" ]]; then + echo "changing shell" chsh -s /usr/bin/fish + read fi # general install +echo "installing cmake" $INS $NOCONF $FLAG cmake +echo "installing lazygit" $INS $NOCONF $FLAG lazygit +echo "installing ranger" $INS $NOCONF $FLAG ranger +echo "installing tmux" $INS $NOCONF $FLAG tmux +echo "installing tldr" $INS $NOCONF $FLAG tealdeer # install acli @@ -530,7 +566,7 @@ mv ~/acli /usr/local/bin/ ## user specific general install ## operating mode specific general install if [[ $MODE -eq 2 ]]; then - # install caddy ( based ) + echo "installing caddy ( based )" $INS $NOCONF $FLAG caddy # make directory for dynamic dns service