We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96b234c commit 28f6a0dCopy full SHA for 28f6a0d
dissect/target/tools/shell.py
@@ -407,6 +407,8 @@ def __init__(self, target: Target):
407
if ps1 := getattr(target._config, "PS1", None):
408
if "{cwd}" in ps1 and "{base}" in ps1:
409
self.prompt_ps1 = ps1
410
+ else:
411
+ self.target.log.warning("Error {cwd} and {base} was not set inside PS1, using the default prompt.")
412
413
elif getattr(target._config, "NO_COLOR", None) or os.getenv("NO_COLOR"):
414
self.prompt_ps1 = "{base}:{cwd}$ "
0 commit comments