some minor improvements
This commit is contained in:
parent
237e76cd04
commit
5df6d1e048
1 changed files with 17 additions and 7 deletions
24
install.sh
24
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 </dev/tty
|
||||
|
||||
case "$askNeovide" in
|
||||
[yY])
|
||||
cloneDots "neovide" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
cloneDots() {
|
||||
choise="$1"
|
||||
cloneName="${2:-$1}"
|
||||
|
@ -215,8 +225,8 @@ __validate__() {
|
|||
esac
|
||||
|
||||
case "$askNvim" in
|
||||
[mM] | minimal) cloneDots "nvim-mini" "nvim" ;;
|
||||
[sS] | standard) cloneDots "nvim" ;;
|
||||
[mM] | minimal) cloneDots "nvim-mini" "nvim" && ask_Neovide ;;
|
||||
[sS] | standard) cloneDots "nvim" && ask_Neovide ;;
|
||||
[nN] | no) return 0 ;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue