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