This commit is contained in:
Didier Slof 2022-12-16 15:33:59 +01:00
parent 70a565df77
commit 4ef7f7756f
Signed by: didier
GPG key ID: 01E71F18AA4398E5
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}