diff --git a/demo/02-outils/demo.sh b/demo/02-outils/demo.sh index 80748e6..a1029aa 100755 --- a/demo/02-outils/demo.sh +++ b/demo/02-outils/demo.sh @@ -1,17 +1,28 @@ -#!/bin/bash -gum style --border double --padding "1 2" --margin "1" "Des outils modernes" +#!/usr/bin/env fish +mise env -s fish | source -gum style --foreground 212 "# alias ls='lsd' -- couleurs et icônes" -lsd -la +set -l g (set_color a6d189) +set -l b (set_color 8caaee) +set -l s '#8caaee' +set -l n (set_color normal) -echo -gum style --foreground 212 "# alias cat='batcat' -- coloration syntaxique et numéros de lignes" +gum style --foreground "$s" --border double --padding "1 2" --margin "1" "Des outils modernes" +gum spin --spinner.foreground "$s" --spinner dot --title " " sleep 3 + +echo "$g❯$b batcat --number -pp ~/.gitconfig$n" batcat --number -pp ~/.gitconfig +gum spin --spinner.foreground "$s" --spinner dot --title " " sleep 3 + +echo +echo "$g❯$b lsd -la$n" +lsd -la +gum spin --spinner.foreground "$s" --spinner dot --title " " sleep 3 echo -gum style --foreground 212 "# alias cd='z' -- navigation intelligente" +echo "$g❯$b zoxide query -l | head -10$n" zoxide query -l | head -10 +gum spin --spinner.foreground "$s" --spinner dot --title " " sleep 3 echo -gum style --foreground 212 "# alias find='fd' -- recherche rapide et intuitive" +echo "$g❯$b fdfind --type f '.splashboard'$n" fdfind --type f '.splashboard' diff --git a/pimp-my-shell.md b/pimp-my-shell.md index c15745f..461700f 100644 --- a/pimp-my-shell.md +++ b/pimp-my-shell.md @@ -38,15 +38,15 @@ cargo run -q --manifest-path big-text/Cargo.toml -- -q "Pimp My Shell" 2>/dev/nu ```bash +exec_replace -cargo run -q --manifest-path big-text/Cargo.toml -- -q "Outils" 2>/dev/null +gum style --padding "1 4" --border none "📄 📂 🚀 🔍" ``` # 🐚 Mon shell est superchargé avec des outils boostés -* `cat` → **batcat** — coloration syntaxique, numéros de lignes -* `ls` → **lsd** — couleurs, icônes par type de fichier -* `cd` → **zoxide** — navigation intelligente par fréquence -* `find` → **fd** — recherche de fichiers rapide et intuitive +* 📄 `cat` → `batcat` : coloration syntaxique, numéros de lignes +* 📂 `ls` → `lsd` : couleurs, icônes par type de fichier +* 🚀 `cd` → `zoxide` : navigation intelligente par fréquence +* 🔍 `find` → `fd` : recherche de fichiers rapide et intuitive