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 + ''; }; }); }