From cd33a5ca59e4e8e4550bc2796f3fdd77a7b002ba Mon Sep 17 00:00:00 2001 From: "Timothy J. Aveni" Date: Sat, 11 Jul 2026 21:53:44 -0700 Subject: [PATCH] Show dev shell prompt indicator --- flake.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/flake.nix b/flake.nix index 598e21c..09b1bb2 100644 --- a/flake.nix +++ b/flake.nix @@ -15,6 +15,15 @@ packages = [ pkgs.nodejs_24 ]; + shellHook = '' + if [ -n "''${PS1-}" ]; then + if [ -n "''${QX_DEV_SHELL_PROMPT-}" ]; then + PS1="''${PS1#\[qx:''${QX_DEV_SHELL_PROMPT}\] }" + fi + export QX_DEV_SHELL_PROMPT="control-plane-protocol" + PS1="[qx:control-plane-protocol] $PS1" + fi + ''; }; }); }