Merge branch 'main' of git.mylloon.fr:Anri/confOS

This commit is contained in:
Mylloon 2023-11-18 21:01:20 +01:00
commit 48918085d3
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 37 additions and 36 deletions

44
arch.sh
View file

@ -16,8 +16,12 @@ main() {
local repo local repo
repo=https://git.mylloon.fr/Anri/confOS/raw/branch/main repo=https://git.mylloon.fr/Anri/confOS/raw/branch/main
# === Remove extra packages == # === Pacman configuration ==
pacman -D --asexplicit archlinux-keyring # keep this package pacman -D --asexplicit archlinux-keyring # keep this package
sudo sed -i "s/#Color/Color/g" /etc/pacman.conf
sudo sed -i "s/#ParallelDownloads = 5/ParallelDownloads = 3/g" /etc/pacman.conf
# === Remove extra packages ==
sudo pacman -Rsn --noconfirm \ sudo pacman -Rsn --noconfirm \
epiphany gnome-maps cheese gnome-weather gnome-music gnome-books vim \ epiphany gnome-maps cheese gnome-weather gnome-music gnome-books vim \
# gnome-firefox, maps, caméra, météo, musique, liseuse, vim # gnome-firefox, maps, caméra, météo, musique, liseuse, vim
@ -32,10 +36,6 @@ main() {
# Dev tools # Dev tools
rustup component add rust-analysis rls rustup component add rust-analysis rls
# === Colors package manager ==
sudo sed -i "s/#Color/Color/g" /etc/pacman.conf
sudo sed -i "s/#ParallelDownloads = 5/ParallelDownloads = 3/g" /etc/pacman.conf
# === Paru == # === Paru ==
git clone https://aur.archlinux.org/paru.git git clone https://aur.archlinux.org/paru.git
cd paru || exit cd paru || exit
@ -94,6 +94,7 @@ main() {
curl -s ${repo}/.config/fish/conf.d/abbr_arch.fish >> "$HOME"/.config/fish/conf.d/abbr.fish curl -s ${repo}/.config/fish/conf.d/abbr_arch.fish >> "$HOME"/.config/fish/conf.d/abbr.fish
# Add aliases # Add aliases
wget -q ${repo}/.config/fish/conf.d/alias.fish -O "$HOME"/.config/fish/conf.d/alias.fish wget -q ${repo}/.config/fish/conf.d/alias.fish -O "$HOME"/.config/fish/conf.d/alias.fish
curl -s ${repo}/.config/fish/conf.d/alias_arch.fish >> "$HOME"/.config/fish/conf.d/alias.fish
# Themes in Gnome Terminal, the default one will be the dark one # Themes in Gnome Terminal, the default one will be the dark one
local GT_default local GT_default
@ -127,30 +128,29 @@ main() {
wget -q --show-progress ${repo}/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json wget -q --show-progress ${repo}/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json
micro -plugin install detectindent micro -plugin install detectindent
# === GL4D == # # === GL4D ==
# Download, build and installation # # Download, build and installation
git clone https://github.com/noalien/GL4Dummies.git # git clone https://github.com/noalien/GL4Dummies.git
cd GL4Dummies || exit # cd GL4Dummies || exit
make -f Makefile.autotools # make -f Makefile.autotools
./configure # ./configure
make # make
sudo make install # sudo make install
cd .. # cd ..
rm -rf GL4Dummies ||: # rm -rf GL4Dummies ||:
# Fix for shared libraries (https://stackoverflow.com/a/9395355) # # Fix for shared libraries (https://stackoverflow.com/a/9395355)
sudo ldconfig # sudo ldconfig
# Add to path # # Add to path
fish -c "set -Ua LD_LIBRARY_PATH /usr/local/lib" # fish -c "set -Ua LD_LIBRARY_PATH /usr/local/lib"
# === Rust == # === Rust ==
# Add Cargo packages from Rust # Add Cargo packages from Rust
mkdir -p "$HOME"/.cargo/bin mkdir -p "$HOME"/.cargo/bin
fish -c "fish_add_path $HOME/.cargo/bin ||:" fish -c "fish_add_path $HOME/.cargo/bin ||:"
# Add cargo packages # Install cargo packages
cargo install cargo-update cargo-cache cargo install cargo-update cargo-cache tealdeer
# === tldr == # === tldr ==
cargo install tealdeer
fish -c "tldr --update" fish -c "tldr --update"
# Fish completion # Fish completion
local url_tldr local url_tldr

View file

@ -119,6 +119,7 @@ main() {
curl -s ${repo}/.config/fish/conf.d/abbr_wsl.fish >> "$HOME"/.config/fish/conf.d/abbr.fish curl -s ${repo}/.config/fish/conf.d/abbr_wsl.fish >> "$HOME"/.config/fish/conf.d/abbr.fish
# Add aliases # Add aliases
wget -q ${repo}/.config/fish/conf.d/alias.fish -O "$HOME"/.config/fish/conf.d/alias.fish wget -q ${repo}/.config/fish/conf.d/alias.fish -O "$HOME"/.config/fish/conf.d/alias.fish
curl -s ${repo}/.config/fish/conf.d/alias_wsl.fish >> "$HOME"/.config/fish/conf.d/alias.fish
# === Default editor == # === Default editor ==
fish -c "set -Ux EDITOR nano" fish -c "set -Ux EDITOR nano"
@ -128,20 +129,20 @@ main() {
wget -q --show-progress ${repo}/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json wget -q --show-progress ${repo}/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json
micro -plugin install detectindent micro -plugin install detectindent
# === GL4D == # # === GL4D ==
# Download, build and installation # # Download, build and installation
git clone https://github.com/noalien/GL4Dummies.git # git clone https://github.com/noalien/GL4Dummies.git
cd GL4Dummies || exit # cd GL4Dummies || exit
make -f Makefile.autotools # make -f Makefile.autotools
./configure # ./configure
make # make
sudo make install # sudo make install
cd .. # cd ..
rm -rf GL4Dummies ||: # rm -rf GL4Dummies ||:
# Fix for shared libraries (https://stackoverflow.com/a/9395355) # # Fix for shared libraries (https://stackoverflow.com/a/9395355)
sudo ldconfig # sudo ldconfig
# Add to path # # Add to path
fish -c "set -Uax LD_LIBRARY_PATH /usr/local/lib" # fish -c "set -Uax LD_LIBRARY_PATH /usr/local/lib"
# === tldr == # === tldr ==
cargo install tealdeer cargo install tealdeer