From 59e5da9c7f3bf7b7d9c13efcb3bd25ab59b67b97 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Mon, 1 Aug 2022 15:39:07 -0700 Subject: [PATCH] FEXBash: Changes PS1 to hopefully help users Currently FEXBash only outputs `FEXBash>` which gives weird docker vibes. This can confuse users since they no longer see what folder they are in. Change this so it still has the user and path exposed like a typical PS1 eg: `FEXBash-ryanh@ryanh-TR2:/mnt/Work/Work/work/FEXNew/Build>` --- Source/Tests/FEXBash.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Tests/FEXBash.cpp b/Source/Tests/FEXBash.cpp index 9adeb3a47..e4661fc2b 100644 --- a/Source/Tests/FEXBash.cpp +++ b/Source/Tests/FEXBash.cpp @@ -94,11 +94,11 @@ int main(int argc, char **argv, char **const envp) { PS1Env = envp[i]; } else { - Envp.emplace_back(envp[i]); + Envp.emplace_back(envp[i]); } } - std::string PS1 = "PS1=FEXBash> "; + std::string PS1 = "PS1=FEXBash-\\u@\\h:\\w> "; if (PS1Env) { PS1 += &PS1Env[strlen("PS1=")]; }