From 6edd3b7d08746a677466951fad5ff53c9fce4945 Mon Sep 17 00:00:00 2001 From: Julien WITTOUCK Date: Thu, 18 Jun 2026 15:32:56 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20:=20update=20demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/02-outils/aliases.fish | 8 ++++++++ demo/02-outils/demo.sh | 23 +++++++++++++++-------- demo/02-outils/dot_gitconfig | 11 +++++++++++ 3 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 demo/02-outils/aliases.fish create mode 100644 demo/02-outils/dot_gitconfig diff --git a/demo/02-outils/aliases.fish b/demo/02-outils/aliases.fish new file mode 100644 index 0000000..47cc165 --- /dev/null +++ b/demo/02-outils/aliases.fish @@ -0,0 +1,8 @@ +alias cat 'batcat --plain' +alias cd zoxide +alias find fdfind +alias ls lsd +alias l 'lsd -l' +alias la 'lsd -a' +alias lla 'lsd -la' +alias lt 'lsd --tree' diff --git a/demo/02-outils/demo.sh b/demo/02-outils/demo.sh index a1029aa..28b208d 100755 --- a/demo/02-outils/demo.sh +++ b/demo/02-outils/demo.sh @@ -7,22 +7,29 @@ set -l s '#8caaee' set -l n (set_color normal) gum style --foreground "$s" --border double --padding "1 2" --margin "1" "Des outils modernes" -gum spin --spinner.foreground "$s" --spinner dot --title " " sleep 3 +gum spin --spinner.foreground "$s" --spinner dot --title " " -- fish -c read -echo "$g❯$b batcat --number -pp ~/.gitconfig$n" -batcat --number -pp ~/.gitconfig -gum spin --spinner.foreground "$s" --spinner dot --title " " sleep 3 +echo "$g❯$b batcat ~/.gitconfig$n" +batcat --number -pp -l toml dot_gitconfig +gum spin --spinner.foreground "$s" --spinner dot --title " " -- fish -c read echo echo "$g❯$b lsd -la$n" lsd -la -gum spin --spinner.foreground "$s" --spinner dot --title " " sleep 3 +echo "$g❯$b lsd --tree$n" +lsd --tree +gum spin --spinner.foreground "$s" --spinner dot --title " " -- fish -c read echo echo "$g❯$b zoxide query -l | head -10$n" zoxide query -l | head -10 -gum spin --spinner.foreground "$s" --spinner dot --title " " sleep 3 +gum spin --spinner.foreground "$s" --spinner dot --title " " -- fish -c read echo -echo "$g❯$b fdfind --type f '.splashboard'$n" -fdfind --type f '.splashboard' +echo "$g❯$b fdfind codekaio $HOME$n" +fdfind codekaio $HOME +gum spin --spinner.foreground "$s" --spinner dot --title " " -- fish -c read + +echo +echo "$g❯$b batcat -pp -l fish aliases.fish$n" +batcat -pp -l fish aliases.fish diff --git a/demo/02-outils/dot_gitconfig b/demo/02-outils/dot_gitconfig new file mode 100644 index 0000000..bc259ed --- /dev/null +++ b/demo/02-outils/dot_gitconfig @@ -0,0 +1,11 @@ +[user] + email = julien@codeka.io + name = Julien WITTOUCK + signingkey = /home/jwittouck/.ssh/id_ed25519.pub +[core] + editor = vim + hooksPath = /home/jwittouck/.config/git/hooks +[init] + defaultBranch = main +[remote "origin"] + prune = true -- 2.51.2