Compare commits

..
54 Commits
Author SHA1 Message Date
lebartal bf858617f1 correction installation nerd-font 2026-02-15 21:39:56 +01:00
lebartal 0de4d1263a Maj README 2026-02-15 20:23:44 +01:00
lebartal 8d24256ecf Correction telechargement Police Nerd-font 2026-02-15 20:23:25 +01:00
lebartal 193b3d8852 ajout installation police awesome 2026-02-15 19:40:08 +01:00
lebartal 7323709255 correction chemin p10k zsh 2026-02-15 19:13:45 +01:00
lebartal d4700f74e6 ajouts fichiers confs pour zsh 2026-02-15 18:45:50 +01:00
lebartal bb8ef93eef elaboration menu AutoInstall 2026-01-24 20:58:25 +01:00
lebartal 8cb5ca4da4 correction fonction read 2026-01-24 20:51:14 +01:00
lebartal 9ff5e98991 corrections nom fonctions 2026-01-24 20:19:45 +01:00
lebartal 03ad7883a0 amelioration gestion racine du script 2026-01-24 20:05:35 +01:00
lebartal 3d66a0ec78 correction nom_fonctions 2026-01-24 19:46:12 +01:00
lebartal 10dd8e7a8d maj systeme inconnu 2026-01-24 19:09:28 +01:00
lebartal 958764f104 Ajout Install Packages 2026-01-24 18:57:14 +01:00
lebartal 4432d6ac5d ajout test sur gestionnaire pkg 2026-01-24 18:54:08 +01:00
lebartal 3874911df2 Ajout Message post install Atuin 2026-01-24 18:31:23 +01:00
lebartal 3be8203006 Ajout Install Atuin 2026-01-24 18:27:54 +01:00
lebartal 22af06bb62 gestion Menu AutoInstall 2026-01-24 18:24:52 +01:00
lebartal 035e6c6866 correction dependances 2026-01-24 17:21:25 +01:00
lebartal 7e4e7d29d5 actualisation menu AutoInstall 2026-01-24 17:18:20 +01:00
lebartal c6f5512e44 commit general 2026-01-24 17:12:02 +01:00
lebartal 16d11ca7e0 Ajout Menu Principal 2026-01-24 14:30:23 +01:00
lebartal 06cadc6535 Ajout Menu selection 2026-01-24 14:07:22 +01:00
lebartal 840a7c3e6b optimisation code + creation dossier source 2026-01-24 13:14:55 +01:00
lebartal 17a20ed81a suppression zenity 2026-01-24 12:36:04 +01:00
lebartal 0e6dda8bb3 creation de la branch dev 2026-01-24 12:33:37 +01:00
lebartal 1c535d1c02 Maj README pour installation 2026-01-18 18:11:52 +01:00
lebartal 667425e6d7 Ajout Popup Zenity 2026-01-18 13:10:05 +01:00
lebartal 630833e152 Merge Request Main 2026-01-18 12:50:58 +01:00
lebartal 880fee8148 Corrections packages 2026-01-18 00:01:24 +01:00
lebartal 867618948a Correction Install paquets redondants 2026-01-17 23:41:37 +01:00
lebartal a0bc6a0222 mise en commentaire du chargement de la config de zsh 2026-01-17 23:02:51 +01:00
lebartal 1395850ea5 Ajout Maj systeme via NALA pendant install 2026-01-17 22:43:22 +01:00
lebartal 4ae7598306 desactivation plugins zsh 2026-01-17 22:37:37 +01:00
lebartal 5237567291 deplacement power10k dans .zsh 2026-01-17 22:22:31 +01:00
lebartal fb3b7ab506 Ajout Police Nerdfont 2026-01-17 15:17:32 +01:00
lebartal 7ac2ad6de9 Ajout rechargement zsh 2026-01-17 13:41:12 +01:00
lebartal 2163207a96 ajout maj systeme avant install 2026-01-17 11:57:09 +01:00
lebartal 10510907f1 correction lancement zsh 2026-01-17 11:53:36 +01:00
lebartal 8b10cab0de Modif install zsh 2026-01-17 11:49:37 +01:00
lebartal 48c77b6400 Separation zsh+plugin AutoInstall 2026-01-17 11:16:52 +01:00
lebartal d226d2f4b5 ajout des alias 2026-01-12 22:08:59 +01:00
lebartal 48f0aaf805 modification de l'autoinstall 2026-01-12 20:15:10 +01:00
lebartal 4401490fd7 Ajout commentaire Interface Zenity 2026-01-03 14:56:26 +01:00
lebartal 590663970f Corrections du fichier 2026-01-01 12:15:43 +01:00
lebartal 6863d55cb9 maj liste 2026-01-01 11:48:46 +01:00
lebartal 9489be14b8 Ajout Memo Linux 2026-01-01 11:46:52 +01:00
lebartal 0831fd87b5 2025-11-23 11:57:27 +01:00
lebartal 01cb79fd99 2025-11-23 11:53:20 +01:00
lebartal 4d5ebdabfc 2025-11-23 11:52:20 +01:00
lebartal ff3efcbe5d 2025-11-23 11:51:08 +01:00
lebartal e658c24dbd 2025-11-23 11:50:27 +01:00
lebartal cc5bc3a54b Evolution Squelette pour MAJ Futures 2025-11-23 11:48:47 +01:00
lebartal deadcc3795 Evolution Squelette pour MAJ Futures 2025-11-23 11:45:20 +01:00
lebartal 1758a91751 Evolution Squelette pour MAJ Futures 2025-11-23 11:27:49 +01:00
10 changed files with 2435 additions and 64 deletions

No files matched your search

-46
View File
@@ -1,46 +0,0 @@
#! /bin/bash
#--------------------------------------------
# Script autoinstallation et configuration Ubuntu
#--------------------------------------------
# Maj Systeme avant AutoInstall
apt update && apt full-upgrade -y
#Installation NALA
curl https://gitlab.com/volian/volian-archive/-/raw/main/install-nala.sh | bash
#Installation Flatpak
add-apt-repository ppa:flatpak/stable
apt update
apt install flatpak -y
apt install gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
#Installation Packages Flatpak
#Installation Packages
nala install lsd zsh htop httpie duf -y
#Installation Mainline
add-apt-repository ppa:cappelikan/ppa
nala install mainline -y
#Configuration zsh+plugins
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
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
bash <(curl https://raw.githubusercontent.com/atuinsh/atuin/main/install.sh)
zsh
#Configuration megacommande maj"
echo "maj='nala full-upgrade && flatpak upgrade && mainline install-latest && update-grub'" > ~/.zshrc
#Reboot
# -> A ajouter un reboot a la finl
+65
View File
@@ -0,0 +1,65 @@
# Petit Memo des trucs utiles sous linux
## Choisir sa distribution
Avant de commencer, quelques liens qui peuvent aider a choisir sa distribution Linux :
- https://distrochooser.de/fr -> En français, pose des questions pour orienter
- https://distrosea.com/fr/ -> Permet de tester les distribution dans son navigateur internet
## Les principales distributions pour débutants
### <u>Linux Mint</u>
Linux Mint est souvent considérée comme la meilleure porte d'entrée pour ceux qui quittent Windows. Son interface 'Cinnamon' est familière : une barre des tâches, un menu démarrer et une gestion des fichiers intuitive. C'est un système 'clé en main' qui fonctionne immédiatement après installation.
- Base : Ubuntu LTS
- Style : Windows-like (Classique)
- Points forts : Stabilité, simplicité, outils maison
- Usage : Bureautique, quotidien
### <u>Zorin OS</u>
Zorin OS mise tout sur le design et la transition douce. Il propose des outils pour installer facilement des applications Windows (.exe) et une interface très soignée qui peut ressembler à Windows ou macOS selon vos préférences.
- Base: Ubuntu
- Style: Moderne et raffinés
- Points forts : Design, intégration Wine (Windows), Zorin Connect
- Usage : Design, multimédia, transition Windows
### <u>Ubuntu</u>
Ubuntu est la distribution la plus connue. Si vous cherchez un tutoriel sur Internet, il sera presque toujours écrit pour Ubuntu. C'est un choix sûr avec un support communautaire immense et une interface 'GNOME' originale et productive.
- Base : Debian
- Style : Unique et moderne
- Points forts : Support massif, logithèque immense
- Usage: Standard, professionnel, développement
### <u>Pop!_OS</u>
Développée par System76, cette version est optimisée pour le travail productif et le jeu vidéo. Elle gère particulièrement bien les cartes graphiques NVIDIA dès l'installation, ce qui évite bien des soucis aux débutants.
- Base : Ubuntu
- Style: Productivité (Auto-tiling)
- Points forts : Gestion des pilotes NVIDIA, workflow efficace
- Usage : Gaming, codage, montage vidéo
## Avec Quoi Installer Linux ?
Linux est a installer via une clée USB, il faut utiliser des programmes comme Rufus ou Ventoy
## Les paquets Utiles a installer
- Nala (Gestionnaire de paquets, Depot a installer)
- Mainline (Gestionnaire de Kernel, Depot a installer)
- Fastfetch (Affichage des infos systeme, dépot a installer)
- Yakuake (Terminal Vertical, Flatpak)
- GearLever (Gestionnaire d'application AppImages)
- Flatseal (Gestionnaire de droits pour les flatpaks)
- Flatsweap (Gestionnaire de fichiers résiduels pour les Flatpaks)
- ProtonUpQT (Gestionnaire des versions de Proton, Requis pour jouer)
## Les Stores d'applications
- AppImageHub ( Store d'application AppImage)
- FlatHub (Store d'applications Flatpak)
+50 -3
View File
@@ -3,9 +3,56 @@
Scripts pour gérer Linux
Distribs Debian/Ubuntu/Mint
# Installation
1. Installation de Git
```
apt update && apt install git
```
2. Recupération des fichiers
```
git clone https://git.lebartal.tech/lebartal/Linux.git
```
3. Lancement du script
```
cd Linux/
chmod +x menu.ksh
./menu.ksh
```
# Changelog
---
09/11/25 : V1.0 - Creation
---
- 09/11/25 : V1.0 - Creation
- 23/11/25 : Reprise du script et modification du squelette pour évolutions futures.
- 18/01/26 : Corrections scripts, ajouts de modules et de packages.
- 15/02/26 : ajouts fichiers config de p10k et zsh (evite la reconfiguration manuelle)
### Contenu
- AutoMaj : Mettre à jour le systeme automatiquement avec une seule commande, AKA "Commande qui fait l'café "
- AutoInstall : Install et préconfigurer les paquets utiles au quotidien
### TODO :
- [ ] (AutoInstall) Faire un menu de gestion du script ou l utilisateur choisi ce qu'il veut faire (ex juste installer maj)
- [ ] (AutoMaj) Traiter les retours de commandes et cas de tests
- [ ] (AutoMaj) Ajouter les MAJs de Atuin, Omz, Mainline
- [ ] (AutoMaj) Ajouter les MAJs du Kernel, maj du grub et Snap
- [ ] (AutoInstall) Si la distrib a du matos Nvidia, ne pas faire les Maj Kernel (Ex PopOS)
### DONE
---
### <u>Problemes Connus</u>
- Apres l'install, la commande `ll` manque de droits (meme en root) pour afficher le contenu de certains dossiers.
> `ll` est un alias de la commande `lsd` installé en `snap` mais `snap` n'a pas les droits car compartimenté dans le dossier
### ABANDONNE
- [ ] (AutoInstall) Faire une Interface graphique utilisateur avec Zenity
-> Trop d'erreurs en testant
Executable
+57
View File
@@ -0,0 +1,57 @@
#! /bin/bash
#set -eo pipefail
#variables
export ROOT_DIR=$(cd "$(dirname "$0")" && pwd)
function check_source
{
source=$1
if [[ -f "${ROOT_DIR}/sources/couleurs.ksh" ]]; then
{
. "${ROOT_DIR}/sources/couleurs.ksh"
}
else
{
echo "${ROUGE}Erreur : Impossible de charger les dependances${RESET}"
exit 1
}
fi
}
check_source "couleurs.ksh"
#Affichage du Menu
clear
echo -e "${BG_NOIR}${VERT}===== MENU GESTION LINUX =====${RESET} \n"
echo ""
echo "Quel module lancer ? "
echo -e " [1] - ${SOULIGNE}AutoInstall${RESET}"
echo " [2] - MAJ"
echo " [0] - Quitter"
read reponse
case ${reponse} in
1)
. ${ROOT_DIR}/modules/AutoInstall/autoinstall.ksh
;;
2)
. ${ROOT_DIR}/modules/AutoMaj/MAJ.ksh
;;
0)
exit
;;
#Autre
*)
echo -e "${ROUGE}merci de repondre${RESET}"
read reponse
;;
esac
+102
View File
@@ -0,0 +1,102 @@
#! /bin/bash
#--------------------------------------------
# Script autoinstallation et configuration Ubuntu/Debian
#--------------------------------------------
#variables
if [[ -z "${ROOT_DIR}" ]]; then
echo "Erreur : Veuillez lancer ce script via le menu.ksh principal."
exit 1
fi
dir_script=$(cd "$(dirname "$0")" && pwd)
#Chargement des couleurs (via la racine globale)
if [[ -f "${ROOT_DIR}/sources/couleurs.ksh" ]]; then
. "${ROOT_DIR}/sources/couleurs.ksh"
fi
# Chargement des fonctions locales
if [[ -f "${ROOT_DIR}/modules/AutoInstall/sources/fonctions.ksh" ]]; then
. "${ROOT_DIR}/modules/AutoInstall/sources/fonctions.ksh"
fi
# Recuperation de la distribution
if command -v lsb_release >/dev/null 2>&1; then
systeme=$(lsb_release -d | cut -c 14-)
else
systeme="${ROUGE}Inconnu${RESET}"
fi
#Affichage du Menu
clear
echo -e "${SOULIGNE}===== AUTOINSTALL =====${RESET} \n"
echo -e "Votre Systeme : ${BG_NOIR}${BLEU}${systeme}${RESET}"
echo ""
echo "Que voulez vous faire ? "
echo "[1] - Installation complete"
echo "[2] - Installer Nala"
echo "[3] - Installation Packages"
echo "[4] - Installer NerdFonts"
echo "[8] - Installer Atuin"
echo "[9] - Installer Zsh+Plugins"
echo "[0] - Quitter"
read reponse
case ${reponse} in
1)
maj_depot
maj_systeme
install_nala
install_packages
install_flatpaks
install_atuin
install_mainline
install_nerdfont
install_zsh
cp sources/conf/.p10k.zsh ${HOME}
cp sources/conf/.zshrc ${HOME}
#config_zsh
#config_alias
;;
2)
install_nala
;;
3)
install_packages
;;
4)
install_nerdfont
;;
8)
install_atuin
;;
9)
install_nerdfont
install_zsh
zsh
config_zsh
;;
0)
exit
;;
#Autre
*)
echo -e "${ROUGE}merci de repondre${RESET}"
read reponse
;;
esac
+143
View File
@@ -0,0 +1,143 @@
#! /bin/bash
if [[ -z "${ROOT_DIR}" ]]; then
echo "Erreur : Veuillez lancer ce script via le menu.ksh principal."
exit 1
fi
dir_script=$(cd "$(dirname "$0")" && pwd)
#Chargement des couleurs (via la racine globale)
if [[ -f "${ROOT_DIR}/sources/couleurs.ksh" ]]; then
. "${ROOT_DIR}/sources/couleurs.ksh"
fi
#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 -fv
echo -e "${BLEU}✅ Nerd-Font Installée, il faudra fermer le terminal pour prise en compte ${RESET}"
}
install_packages()
{
add-apt-repository ppa:zhangsongcui3371/fastfetch -y
${gest_pkg} install btop duf httpie fastfetch -y
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
# <a faire plus tard>
}
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
}
+33 -15
View File
@@ -1,11 +1,21 @@
#!/bin/sh
# ------------------------------------------------------------
# Mise à jour système – version POSIX sh
# ------------------------------------------------------------
#!/bin/bash
# -e : quitter dès la première erreur
# -u : erreur lorsqu'une variable n'est pas définie
set -eu
###############################################################
# name: MAJ.ksh
# Description : Automatise les mises a jours Paquets + OS
#
#---------------------------------------------------------------------------
#
# Auteur : LeBartal
#
# Date de création : 19/04/2023
#
###############################################################
if [[ -z "${ROOT_DIR}" ]]; then
echo "Erreur : Veuillez lancer ce script via le menu.ksh principal."
exit 1
fi
# ---------- Couleurs (facultatives) ----------
# Certaines consoles ne supportent pas tput, on prévoit un fallback vide.
@@ -15,7 +25,8 @@ YELLOW=$(tput setaf 3 2>/dev/null || printf '')
RESET=$(tput sgr0 2>/dev/null || printf '')
# ---------- Fonction de journalisation ----------
log() {
log()
{
# $1 = niveau (INFO|OK|ERR)
# $2 = message
case "$1" in
@@ -27,7 +38,8 @@ log() {
}
# ---------- Wrapper d’exécution de commande ----------
run_cmd() {
run_cmd()
{
# On exécute la commande passée en arguments séparés
# "$@" préserve les espaces éventuels dans chaque argument.
"$@"
@@ -41,33 +53,39 @@ run_cmd() {
}
# ---------- Étapes de mise à jour ----------
update_pkg_list() {
update_pkg_list()
{
log INFO "Mise à jour de la liste des paquets…"
run_cmd apt-get update -y
}
upgrade_installed() {
upgrade_installed()
{
log INFO "Mise à jour des paquets déjà installés…"
run_cmd apt-get upgrade -y
}
dist_upgrade_os() {
dist_upgrade_os()
{
log INFO "Dist-upgrade de l’OS…"
run_cmd apt-get dist-upgrade -y
}
autoremove_obsolete() {
autoremove_obsolete()
{
log INFO "Suppression des paquets obsolètes…"
run_cmd apt-get autoremove -y
}
clean_cache() {
clean_cache()
{
log INFO "Nettoyage du cache des paquets…"
run_cmd apt-get clean -y
}
# ---------- Point d’entrée ----------
main() {
main()
{
update_pkg_list
upgrade_installed
dist_upgrade_os
File diff suppressed because it is too large. Load diff
+128
View File
@@ -0,0 +1,128 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
POWERLEVEL9K_MODE='nerdfont-complete'
# Path to your Oh My Zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time Oh My Zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
#ZSH_THEME="robbyrussell"
ZSH_THEME="agnoster"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment one of the following lines to change the auto-update behavior
# zstyle ':omz:update' mode disabled # disable automatic updates
# zstyle ':omz:update' mode auto # update automatically without asking
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
# Uncomment the following line to change how often to auto-update (in days).
# zstyle ':omz:update' frequency 13
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch $(uname -m)"
# Set personal aliases, overriding those provided by Oh My Zsh libs,
# plugins, and themes. Aliases can be placed here, though Oh My Zsh
# users are encouraged to define aliases within a top-level file in
# the $ZSH_CUSTOM folder, with .zsh extension. Examples:
# - $ZSH_CUSTOM/aliases.zsh
# - $ZSH_CUSTOM/macos.zsh
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zsh/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
alias maj="atuin-update && nala full-upgrade -y && flatpak upgrade -y && mainline install-latest && update-grub || fwupdmgr refresh || fwupdmgr get-updates && fwupdmgr upgrade || omz update"
#alias maj="nala full-upgrade -y && flatpak upgrade -y && update-grub && fwupdmgr refresh || fwupdmgr get-updates && fwupdmgr upgrade"
#alias maj="apt update && apt full-upgrade -y && flatpak upgrade -y && mainline install-latest && update-grub && fwupdmgr refresh || fwupdmgr get-updates && fwupdmgr upgrade"
alias ll="lsd -ltrh"
. "$HOME/.atuin/bin/env"
eval "$(atuin init zsh)"
+22
View File
@@ -0,0 +1,22 @@
#!/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"