Show dev shell prompt indicator
This commit is contained in:
@@ -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
|
||||
'';
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user