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"
|
echo_info "Found package manager: $pkger"
|
||||||
case "$pkger" in
|
case "$pkger" in
|
||||||
"apt")
|
"apt")
|
||||||
|
$_sudo apt-get update
|
||||||
_install() { $_sudo apt-get install --assume-yes "$@"; }
|
_install() { $_sudo apt-get install --assume-yes "$@"; }
|
||||||
;;
|
;;
|
||||||
"pacman")
|
"pacman")
|
||||||
|
$_sudo pacman -Syy
|
||||||
_install() { $_sudo pacman -S --noconfirm "$@"; }
|
_install() { $_sudo pacman -S --noconfirm "$@"; }
|
||||||
;;
|
;;
|
||||||
"dnf")
|
"dnf")
|
||||||
|
$_sudo dnf update
|
||||||
_install() { $_sudo dnf install -y "$@"; }
|
_install() { $_sudo dnf install -y "$@"; }
|
||||||
;;
|
;;
|
||||||
"apk")
|
"apk")
|
||||||
_install() { $_sudo apk add "$@"; }
|
_install() { $_sudo apk add "$@"; }
|
||||||
;;
|
;;
|
||||||
"zypper")
|
"zypper")
|
||||||
|
$_sudo zypper ref
|
||||||
_install() { $_sudo zypper in -y "$@"; }
|
_install() { $_sudo zypper in -y "$@"; }
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -89,16 +93,13 @@ __pre_stow__() {
|
||||||
bak_dir="$HOME/.bak"
|
bak_dir="$HOME/.bak"
|
||||||
dirs=(
|
dirs=(
|
||||||
"btop"
|
"btop"
|
||||||
"zsh"
|
|
||||||
"gBar"
|
"gBar"
|
||||||
"caja"
|
|
||||||
"yazi"
|
"yazi"
|
||||||
"fastfetch"
|
"fastfetch"
|
||||||
"hypr"
|
"hypr"
|
||||||
"kitty"
|
"kitty"
|
||||||
"neovide"
|
"neovide"
|
||||||
"rofi"
|
"rofi"
|
||||||
"swaync"
|
|
||||||
"waybar"
|
"waybar"
|
||||||
"wlogout"
|
"wlogout"
|
||||||
"wob"
|
"wob"
|
||||||
|
@ -120,6 +121,7 @@ __pre_stow__() {
|
||||||
|
|
||||||
h_files=(
|
h_files=(
|
||||||
".zshrc"
|
".zshrc"
|
||||||
|
".zshenv"
|
||||||
".tmux.conf"
|
".tmux.conf"
|
||||||
".wezterm.lua"
|
".wezterm.lua"
|
||||||
)
|
)
|
||||||
|
@ -127,8 +129,6 @@ __pre_stow__() {
|
||||||
h_dirs=(
|
h_dirs=(
|
||||||
".tmux"
|
".tmux"
|
||||||
".zsh"
|
".zsh"
|
||||||
".icons"
|
|
||||||
".themes"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
for _f in "${h_files[@]}"; do
|
for _f in "${h_files[@]}"; do
|
||||||
|
@ -175,6 +175,16 @@ askThings() {
|
||||||
esac
|
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() {
|
cloneDots() {
|
||||||
choise="$1"
|
choise="$1"
|
||||||
cloneName="${2:-$1}"
|
cloneName="${2:-$1}"
|
||||||
|
@ -215,8 +225,8 @@ __validate__() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$askNvim" in
|
case "$askNvim" in
|
||||||
[mM] | minimal) cloneDots "nvim-mini" "nvim" ;;
|
[mM] | minimal) cloneDots "nvim-mini" "nvim" && ask_Neovide ;;
|
||||||
[sS] | standard) cloneDots "nvim" ;;
|
[sS] | standard) cloneDots "nvim" && ask_Neovide ;;
|
||||||
[nN] | no) return 0 ;;
|
[nN] | no) return 0 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue