system init updates; auto create config for first-time local; auto-link sudo vimrc

This commit is contained in:
2024-08-14 19:11:52 -06:00
parent a29a07c0aa
commit 74323b7568
3 changed files with 41 additions and 45 deletions

View File

@@ -97,17 +97,14 @@ INSTALL_MANAGED__arch() {
return 0
}
STATUS "checking for $TARGET"
yay -Qq | grep -q "^$TARGET$\|^$TARGET-git$" && {
SUCCESS "found installation of '$TARGET'"
yay -Qq 2>/dev/null | grep -q "^$TARGET$\|^$TARGET-git$" && {
SUCCESS "found '$TARGET'"
} || {
WARNING "'$TARGET' not found"
STATUS "installing '$TARGET'"
yay -Syu --noconfirm $TARGET \
&& SUCCESS "successfully installed '$TARGET'" \
|| ERROR "failed to install '$TARGET'"
|| ERROR "failed to install '$TARGET'" \
;
}
}