From a6dc100241a78872ddacad39ff35be005e36a7da Mon Sep 17 00:00:00 2001 From: Pulak Kanti Bhowmick Date: Sun, 3 Nov 2024 21:23:26 +0600 Subject: [PATCH] add atmos in PS1 Signed-off-by: Pulak Kanti Bhowmick --- internal/exec/shell_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/exec/shell_utils.go b/internal/exec/shell_utils.go index 9ddb12db7..d7e4e7fcf 100644 --- a/internal/exec/shell_utils.go +++ b/internal/exec/shell_utils.go @@ -154,6 +154,7 @@ func execTerraformShellCommand( componentEnvList = append(componentEnvList, fmt.Sprintf("TF_CLI_ARGS_import=-var-file=%s", varFile)) componentEnvList = append(componentEnvList, fmt.Sprintf("TF_CLI_ARGS_destroy=-var-file=%s", varFile)) componentEnvList = append(componentEnvList, fmt.Sprintf("TF_CLI_ARGS_console=-var-file=%s", varFile)) + componentEnvList = append(componentEnvList, "PS1=atmos>") u.LogDebug(cliConfig, "\nStarting a new interactive shell where you can execute all native Terraform commands (type 'exit' to go back)") u.LogDebug(cliConfig, fmt.Sprintf("Component: %s\n", component)) @@ -187,7 +188,6 @@ func execTerraformShellCommand( } shellCommand = bashPath } - shellCommand = shellCommand + " -l" } u.LogDebug(cliConfig, fmt.Sprintf("Starting process: %s\n", shellCommand))