Compare commits

...

4 Commits

Author SHA1 Message Date
Xavier Logerais
7295fd6057 chore: shellcheck 2024-12-20 08:49:13 +00:00
Xavier Logerais
a8ec6b83e2 feat: improve git configuration 2024-12-20 08:46:28 +00:00
Xavier Logerais
ceb4daf128 feat: create dedicated os.d dir for os specific install 2024-12-20 08:36:00 +00:00
Xavier Logerais
6848c459f7 feat: move anyenv to tools.d dir 2024-12-20 08:35:00 +00:00
6 changed files with 19 additions and 9 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
bash system-ubuntu.bash
bash os.bash
bash tools.bash
bash fonts.bash
bash config.bash

View File

@ -4,8 +4,11 @@
git config --global user.name "Xavier Logerais"
git config --global user.email "xavier@logerais.com"
git config --global rerere.enabled 1
git config --global credential.helper cache
git config --global merge.conflictstyle diff3
git config --global rerere.enabled 1
cat <<EOF >~/.gitignore
### asdf ###
@ -19,4 +22,8 @@ cat <<EOF >~/.gitignore
.venv
EOF
cat <<EOF >~/.gitattributes
EOF
git config --global core.excludesfile ~/.gitignore
git config --global core.attributesfile ~/.gitattributes

View File

@ -12,10 +12,9 @@ fonts+=("DejaVuSansMono")
test -d "${fontdir}" || mkdir -p "${fontdir}"
# Download fonts
for font in "${fonts[@]}"
do
wget -q -O /tmp/${font}.zip "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/${font}.zip" && cd ${fontdir} && unzip -u /tmp/${font}.zip && rm /tmp/${font}.zip
for font in "${fonts[@]}"; do
wget -q -O "/tmp/${font}.zip" "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/${font}.zip" && cd "${fontdir}" && unzip -u "/tmp/${font}.zip" && rm "/tmp/${font}.zip"
done
# Refresh cache
fc-cache --force --verbose ${fontdir}
fc-cache --force --verbose "${fontdir}"

5
os.bash Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
for file in os.d/*.bash; do
bash $file
done

View File

@ -1,10 +1,9 @@
#!/bin/bash
if ( grep -q Ubuntu <(lsb_release -i) )
then
if (grep -q Ubuntu <(lsb_release -i)); then
sudo apt update
sudo apt upgrade -y
sudo apt install -y coreutils grep less tar tree
sudo apt install -y man manpages-fr manpages-fr-extra
sudo apt install -y bash zsh fish