From 2aa623d7c215a8e91dc261b3b177aa3850c4f3e5 Mon Sep 17 00:00:00 2001
From: HikariKnight <2557889+HikariKnight@users.noreply.github.com>
Date: Mon, 4 Mar 2024 12:47:20 +0100
Subject: [PATCH 01/16] fix(just): correctly say devmode is disabled
---
just/custom.just | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/just/custom.just b/just/custom.just
index f3f63f3d4a7..50c45a044e0 100644
--- a/just/custom.just
+++ b/just/custom.just
@@ -156,14 +156,14 @@ jetbrains-toolbox:
# Install and configure Incus
incus:
#!/usr/bin/env bash
+ source /usr/lib/ujust/ujust.sh
CURRENT_IMAGE=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"')
-
if grep -q "bluefin-dx" <<< $CURRENT_IMAGE
then
echo 'Installing and configuring Incus.'
/usr/bin/bluefin-incus
else
- echo "Developer mode is currently ${CURRENT_STATE}."
+ echo "Developer mode is currently ${b}${red}Disabled${n}."
echo "Run `just devmode` to turn on Developer mode."
exit
fi
From 3155709187ed7e52e654c4382a95619cb26f6b35 Mon Sep 17 00:00:00 2001
From: HikariKnight <2557889+HikariKnight@users.noreply.github.com>
Date: Mon, 4 Mar 2024 12:48:12 +0100
Subject: [PATCH 02/16] fix(just): do not attempt to run "just devmode" when
echoing
---
just/custom.just | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/just/custom.just b/just/custom.just
index 50c45a044e0..ec56eab70ba 100644
--- a/just/custom.just
+++ b/just/custom.just
@@ -164,7 +164,7 @@ incus:
/usr/bin/bluefin-incus
else
echo "Developer mode is currently ${b}${red}Disabled${n}."
- echo "Run `just devmode` to turn on Developer mode."
+ echo "Run \"just devmode\" to turn on Developer mode."
exit
fi
From feb12ab26ed062db869293c5982dce0eb1fd9d42 Mon Sep 17 00:00:00 2001
From: HikariKnight <2557889+HikariKnight@users.noreply.github.com>
Date: Sat, 9 Mar 2024 08:39:41 +0100
Subject: [PATCH 03/16] feat(just): merge shell recipes into 1 recipe
---
just/custom.just | 37 ++++++++++++++++++++++++++++---------
1 file changed, 28 insertions(+), 9 deletions(-)
diff --git a/just/custom.just b/just/custom.just
index ec56eab70ba..0528785a770 100644
--- a/just/custom.just
+++ b/just/custom.just
@@ -100,10 +100,34 @@ devmode:
fi
fi
-# Switch to the fish shell
-fish:
- sudo usermod $USER --shell /usr/bin/fish
- printf "${USER}'s shell is now %s." "$(cat /etc/passwd | grep ":$UID:" | cut '-d:' '-f7')"
+alias shell := configure-shell
+
+# Switch to a different shell
+configure-shell ACTION="":
+ #!/bin/bash
+ source /usr/lib/ujust/ujust.sh
+ CURRENT_SHELL="$(cat /etc/passwd | grep ":$UID:" | cut '-d:' '-f7')"
+ OPTION={{ ACTION }}
+ if [ "$OPTION" == "help" ]; then
+ echo "Usage: ujust shell