From b9976ff33270f30282578fd681de0f0fe5a674d0 Mon Sep 17 00:00:00 2001 From: Wynter Woods Date: Tue, 16 Apr 2019 09:45:43 -0700 Subject: [PATCH] This modifies the prompt to show the currently running container, making it easy to identify which container instance you are working with in the case where you might have many. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This prefixes the diamond character with the container name to very clearly distinguish the name from the rest of your prompt. Where previously a bash prompt might read 🔹[zerotri@toolbox toolbox]$ for the container `sysutils` it would now read sysutils🔹[zerotri@toolbox toolbox]$ --- toolbox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox b/toolbox index 219e9b62c..037ae2999 100755 --- a/toolbox +++ b/toolbox @@ -811,7 +811,7 @@ enter() capsh --caps="" -- -c 'cd "$1"; export PS1="$2"; shift 2; exec "$@"' \ /bin/sh \ "$PWD" \ - "$toolbox_prompt" \ + "$toolbox_container$toolbox_prompt" \ "$shell_to_exec" -l 2>&3 )