#! /bin/bash # Couleurs de texte (Foreground) NOIR='\e[30m' ROUGE='\e[31m' VERT='\e[32m' JAUNE='\e[33m' BLEU='\e[34m' VIOLET='\e[35m' CYAN='\e[36m' BLANC='\e[37m' # Couleurs de fond (Background) BG_NOIR='\e[40m' BG_ROUGE='\e[41m' BG_VERT='\e[42m' BG_JAUNE='\e[43m' # Styles GRAS='\e[1m' SOULIGNE='\e[4m' RESET="\e[0m" #Verif gestionnaire packages if command -v nala >/dev/null 2>&1; then { gest_pkg="nala" } else { gest_pkg="apt" } fi # -------------- FONCTIONS --------------- maj_depot() { #Actualisation depots ${gest_pkg} update } maj_systeme() { ${gest_pkg} full-upgrade -y } maj_packages() { ${gest_pkg} upgrade -y } install_nala() { #Installation NALA curl https://gitlab.com/volian/volian-archive/-/raw/main/install-nala.sh | bash } install_nerdfont() { #Telechargement Nerdfonts (Police Hackfont, la plus lisible) mkdir -p ~/.local/share/fonts/ #Installation de la Police wget -o ~/.local/share/fonts/Hack.zip https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/Hack.zip unzip ~/.local/share/fonts/Hack.zip rm ~/.local/share/fonts/Hack.zip #Mise a jour des polices fc-cache -f } install_packages() { add-apt-repository ppa:zhangsongcui3371/fastfetch -y ${gest_pkg} install btop duf httpie fastfetch snap install lsd } install_flatpaks() { # 12/01/2026 desactivation des flatpak, ces derniers sont installables directement dans les depots de bases. #Installation Flatpak #add-apt-repository ppa:flatpak/stable -y ${gest_pkg} install flatpak -y ${gest_pkg} install gnome-software-plugin-flatpak -y #flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo #Installation Packages Flatpak # } install_mainline() { #Installation Mainline add-apt-repository ppa:cappelikan/ppa -y ${gest_pkg} install mainline -y } install_atuin() { #Installation Atuin bash <(curl https://raw.githubusercontent.com/atuinsh/atuin/main/install.sh) echo -e "${SOULIGNE}${VERT}✅ Atuin est installe, merci de faire une deco/reco${RESET}" } install_zsh() # ainsi que les plugins { ${gest_pkg} install zsh -y #Configuration zsh+plugins sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #Installation Plugin ZSH git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.zsh/powerlevel10k echo "source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc echo "source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc echo "source ~/.zsh/powerlevel10k/powerlevel10k.zsh-theme" >> ~/.zshrc # pré-chargement fichier zsh configure #source ~/.zshrc } config_alias() { #Configuration megacommande maj" echo "alias maj='nala full-upgrade && flatpak upgrade && mainline install-latest && update-grub'" >> ~/.zshrc #Configuration des alias des commandes # commande ll pour lister les fichier echo "alias ll='lsd -ltr'" >> ~/.zshrc # commande dl pour download echo "alias dl ='http --download'" >> ~/.zshrc # commande disque pour espace disque echo "alias disque='duf' " >> ~/.zshrc } config_zsh() { #Relancer la config de zsh p10k configure }