diff --git a/install.sh b/install.sh index 9a293b0..0c4f94a 100755 --- a/install.sh +++ b/install.sh @@ -129,21 +129,22 @@ __validate__() { echo_warning "curl was not found, could not install yazi!" fi fi + fileMgr="yazi" ;; [rR] | ranger) cloneDots "ranger" - pkgOption="${pkgOption:ranger}" + fileMgr="ranger" ;; [lL] | lf) cloneDots "lf" - pkgOption="${pkgOption:lf}" + fileMgr="lf" ;; esac case "$askMultiPlexer" in [tT] | tmux) cloneDots "tmux" - pkgOption="${pkgOption:tmux}" + multiPlx="tmux" ;; [zZ] | zellij) cloneDots "zellij" @@ -154,6 +155,7 @@ __validate__() { echo_warning "curl was not found, could not install zellij!" fi fi + multiPlx="zellij" ;; esac else @@ -174,10 +176,12 @@ __validate__() { __dep__() { _depss=( - "${pkgOption[@]}" + "$fileMgr" + "$multiPlx" "stow" "btop" "entr" + "keychain" "unzip" "zip" "fzf" @@ -194,14 +198,16 @@ __dep__() { echo_info "$hyprdots_dependency is already installed" fi ;; - *) + yazi) if ! command_exists "$hyprdots_dependency"; then - echo_note "--- installing $hyprdots_dependency ---" - _install "$hyprdots_dependency" + eval "$(curl -fsSL https://git.k4li.de/scripts/installs/raw/branch/main/yazi.sh)" else echo_info "$hyprdots_dependency is already installed" fi ;; + *) + checkAndInstall "$hyprdots_dependency" + ;; esac done