From 5df6d1e0486f6bfb86948dee50114205c969a353 Mon Sep 17 00:00:00 2001 From: pika Date: Fri, 28 Mar 2025 13:34:20 +0100 Subject: [PATCH] some minor improvements --- install.sh | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 941bbda..c908ff8 100755 --- a/install.sh +++ b/install.sh @@ -60,18 +60,22 @@ get_packager() { echo_info "Found package manager: $pkger" case "$pkger" in "apt") + $_sudo apt-get update _install() { $_sudo apt-get install --assume-yes "$@"; } ;; "pacman") + $_sudo pacman -Syy _install() { $_sudo pacman -S --noconfirm "$@"; } ;; "dnf") + $_sudo dnf update _install() { $_sudo dnf install -y "$@"; } ;; "apk") _install() { $_sudo apk add "$@"; } ;; "zypper") + $_sudo zypper ref _install() { $_sudo zypper in -y "$@"; } ;; esac @@ -89,16 +93,13 @@ __pre_stow__() { bak_dir="$HOME/.bak" dirs=( "btop" - "zsh" "gBar" - "caja" "yazi" "fastfetch" "hypr" "kitty" "neovide" "rofi" - "swaync" "waybar" "wlogout" "wob" @@ -120,6 +121,7 @@ __pre_stow__() { h_files=( ".zshrc" + ".zshenv" ".tmux.conf" ".wezterm.lua" ) @@ -127,8 +129,6 @@ __pre_stow__() { h_dirs=( ".tmux" ".zsh" - ".icons" - ".themes" ) for _f in "${h_files[@]}"; do @@ -175,6 +175,16 @@ askThings() { esac } +ask_Neovide(){ + echo_info "Do you also want to install a neovide config? [y/N]" + read -r askNeovide