initial system update and some deps update
This commit is contained in:
parent
fec162c120
commit
ad338c15c5
@ -1,13 +1,14 @@
|
|||||||
aws-cli-v2
|
aws-cli-v2
|
||||||
base-devel
|
base-devel
|
||||||
|
bat
|
||||||
cmake
|
cmake
|
||||||
cowsay
|
cowsay
|
||||||
figlet
|
figlet
|
||||||
fzf
|
fzf
|
||||||
|
htop
|
||||||
lolcat
|
lolcat
|
||||||
ncurses
|
ncurses
|
||||||
python
|
python
|
||||||
ripgrep
|
ripgrep
|
||||||
tmux
|
tmux
|
||||||
vim
|
vim
|
||||||
vim-runtime
|
|
||||||
|
@ -1,10 +1,18 @@
|
|||||||
|
alacritty
|
||||||
aws-cli-v2
|
aws-cli-v2
|
||||||
base-devel
|
base-devel
|
||||||
|
bat
|
||||||
cmake
|
cmake
|
||||||
cowsay
|
cowsay
|
||||||
figlet
|
figlet
|
||||||
|
fprintd
|
||||||
fzf
|
fzf
|
||||||
go
|
go
|
||||||
|
google-chrome
|
||||||
|
htop
|
||||||
|
i3-wm
|
||||||
|
i3lock-color
|
||||||
|
i3status
|
||||||
jdk-openjdk
|
jdk-openjdk
|
||||||
lolcat
|
lolcat
|
||||||
monaspace-font
|
monaspace-font
|
||||||
@ -12,9 +20,11 @@ mono
|
|||||||
ncurses
|
ncurses
|
||||||
nodejs
|
nodejs
|
||||||
npm
|
npm
|
||||||
|
pam-fprint-grosshack
|
||||||
python
|
python
|
||||||
ripgrep
|
ripgrep
|
||||||
tmux
|
tmux
|
||||||
unipicker
|
unipicker
|
||||||
vim
|
vim
|
||||||
vim-runtime
|
vim-runtime
|
||||||
|
yamllint
|
||||||
|
12
setup/os.zsh
12
setup/os.zsh
@ -70,6 +70,11 @@ OS__INSTALL_MANAGED_DEPENDENCIES() {
|
|||||||
|| DEPENDENCIES="$DOTWRYN_PATH/setup/os-dependencies/$OS_NAME.txt" \
|
|| DEPENDENCIES="$DOTWRYN_PATH/setup/os-dependencies/$OS_NAME.txt" \
|
||||||
;
|
;
|
||||||
|
|
||||||
|
[ ! $CI ] && {
|
||||||
|
STATUS 'updating system, repositories, and mirrors'
|
||||||
|
UPDATE_REPOSITORIES__$OS_NAME
|
||||||
|
}
|
||||||
|
|
||||||
for DEPENDENCY in $(cat "$DEPENDENCIES")
|
for DEPENDENCY in $(cat "$DEPENDENCIES")
|
||||||
do
|
do
|
||||||
INSTALL_MANAGED__$OS_NAME $DEPENDENCY
|
INSTALL_MANAGED__$OS_NAME $DEPENDENCY
|
||||||
@ -84,23 +89,25 @@ OS__INSTALL_MANAGED_DEPENDENCIES() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UPDATE_REPOSITORIES__arch() { yay -Syu; }
|
||||||
INSTALL_MANAGED__arch() {
|
INSTALL_MANAGED__arch() {
|
||||||
local TARGET="$1"
|
local TARGET="$1"
|
||||||
|
|
||||||
STATUS "checking for $TARGET"
|
STATUS "checking for $TARGET"
|
||||||
|
|
||||||
pacman -Qq | grep -q "^$TARGET$\|^$TARGET-git$" && {
|
yay -Qq | grep -q "^$TARGET$\|^$TARGET-git$" && {
|
||||||
SUCCESS "found installation of '$TARGET'"
|
SUCCESS "found installation of '$TARGET'"
|
||||||
} || {
|
} || {
|
||||||
WARNING "'$TARGET' not found"
|
WARNING "'$TARGET' not found"
|
||||||
|
|
||||||
STATUS "installing '$TARGET'"
|
STATUS "installing '$TARGET'"
|
||||||
sudo pacman -Syu --noconfirm $TARGET \
|
yay -Syu --noconfirm $TARGET \
|
||||||
&& SUCCESS "successfully installed '$TARGET'" \
|
&& SUCCESS "successfully installed '$TARGET'" \
|
||||||
|| ERROR "failed to install '$TARGET'"
|
|| ERROR "failed to install '$TARGET'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UPDATE_REPOSITORIES__debian() { sudo apt-get update && sudo apt-get upgrade; }
|
||||||
INSTALL_MANAGED__debian() {
|
INSTALL_MANAGED__debian() {
|
||||||
STATUS "checking / installing '$1'"
|
STATUS "checking / installing '$1'"
|
||||||
sudo apt-get install --yes $1 \
|
sudo apt-get install --yes $1 \
|
||||||
@ -109,6 +116,7 @@ INSTALL_MANAGED__debian() {
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UPDATE_REPOSITORIES__generic() { return 0; }
|
||||||
INSTALL_MANAGED__generic() {
|
INSTALL_MANAGED__generic() {
|
||||||
command -v $1 >/dev/null 2>&1 \
|
command -v $1 >/dev/null 2>&1 \
|
||||||
|| ERROR "could not find '$1'; it's up to you to install this one!"
|
|| ERROR "could not find '$1'; it's up to you to install this one!"
|
||||||
|
Loading…
Reference in New Issue
Block a user