This commit is contained in:
Strix 2023-10-14 22:38:04 +02:00
parent 56b4964dc7
commit 0b7fb13bc4
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
3 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,4 @@
^pacman -Syyu
^[ -d /tmp/yay ] && rm -rf /tmp/yay
git clone https://aur.archlinux.org/yay /tmp/yay
cd /tmp/yay && makepkg --noconfirm -si && echo $PREF_TERM

View file

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
. ./sync.conf || . ../sync.conf
DRY_RUN=${DRY_RUN:-no} DRY_RUN=${DRY_RUN:-no}
bool() { bool() {
@ -17,3 +19,7 @@ run() {
"$@" "$@"
fi fi
} }
is_graphical() {
command -v $PREF_TERM && return 0 || return 1
}

View file

@ -7,4 +7,9 @@ PM_UPDATE_ARG=${PM_UPDATE_ARG:-Sy}
# SYS - System Options # SYS - System Options
SYS_SUDO=${SYS_SUDO:-"sudo"} SYS_SUDO=${SYS_SUDO:-"sudo"}
SYS_ROOT=${SYS_ROOT:-"/"} SYS_ROOT=${SYS_ROOT:-"/"}
# PREF - Preferences
PREF_TERM=${PREF_TERM:-alacritty}
PREF_TERM_SET_TITLE=${PREF_TERM_SET_TITLE:--t}
PREF_TERM_RUN_CMD=${PREF_TERM_RUN_CMD:--e}