diff --git a/demo/03-starship/.mise.toml b/demo/03-starship/.mise.toml new file mode 100644 index 0000000..1f24944 --- /dev/null +++ b/demo/03-starship/.mise.toml @@ -0,0 +1,2 @@ +[env] +NO_SPLASHBOARD = 1 diff --git a/demo/03-starship/demo.sh b/demo/03-starship/demo.sh index fd7ea55..4c0022c 100755 --- a/demo/03-starship/demo.sh +++ b/demo/03-starship/demo.sh @@ -1,20 +1,17 @@ #!/usr/bin/env fish mise env -s fish | source +export NO_SPLASHBOARD=1 + set -l g (set_color a6d189) set -l b (set_color 8caaee) set -l s '#8caaee' set -l n (set_color normal) gum style --foreground "$s" --border double --padding "1 2" --margin "1" "Starship — Le prompt cross-shell" -gum spin --spinner.foreground "$s" --spinner dot --title " " sleep 3 - -echo "$g❯$b starship explain$n" -starship explain -gum spin --spinner.foreground "$s" --spinner dot --title " " sleep 3 echo -printf '%s\n' \ +set chosen (printf '%s\n' \ "java/gaia,Java (Maven) — temurin-21 / 1.2.0" \ "java/gitlab-classrooms,Java (Maven) — temurin-25 / 2.1.0-SNAPSHOT" \ "node-project,Node.js — 1.1.0" \ @@ -25,4 +22,8 @@ printf '%s\n' \ "starship-themes/pastel-powerline,Starship — Preset Pastel Powerline" \ "starship-themes/catppuccin-powerline,Starship — Preset Catppuccin Frappe" \ "starship-themes/jetpack,Starship — Preset Jetpack" | - gum table --print -s "," --columns "Répertoire,Détails" --widths 32,52 --border rounded + gum table --height 12 -s "," --columns "Répertoire,Détails" --widths 34,50 --border rounded --return-column 1) + +if test -n "$chosen" + echo "cd $chosen" >"$DEMO_CD_FILE" +end diff --git a/demo/03-starship/java/gaia b/demo/03-starship/java/gaia index accd416..49fdb45 160000 --- a/demo/03-starship/java/gaia +++ b/demo/03-starship/java/gaia @@ -1 +1 @@ -Subproject commit accd4167aff97cb3c5b51b17677d75fa7a47244f +Subproject commit 49fdb4551443a2a8a9f6654ce81413559b15ee20 diff --git a/demo/03-starship/java/gitlab-classrooms b/demo/03-starship/java/gitlab-classrooms index 5170834..358018f 160000 --- a/demo/03-starship/java/gitlab-classrooms +++ b/demo/03-starship/java/gitlab-classrooms @@ -1 +1 @@ -Subproject commit 5170834a9d18fe43ffa199f0e81373ea464582f1 +Subproject commit 358018f7a2bd4363b85cf317041c63c68812f143 diff --git a/demo/03-starship/node-project b/demo/03-starship/node-project index 3989c7f..a05439b 160000 --- a/demo/03-starship/node-project +++ b/demo/03-starship/node-project @@ -1 +1 @@ -Subproject commit 3989c7f3b15d55b76d50db73264436a048db6e06 +Subproject commit a05439b0600c122e845718d4130920ce4c57a4ba