From f8a1d54124f9b950391d2f535dd4e6036c8003a9 Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Mon, 9 Jan 2023 12:45:02 +0100 Subject: [PATCH] [bash] explicitly set SHORTPS1 so it will show up in printenv This is a toggle built into __PROMPT_COMMAND__ to toggle a newline at the end of the prompt. I couldn't easily trace the name.. --- bash/bashrc.d/prompt_command.bash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bash/bashrc.d/prompt_command.bash b/bash/bashrc.d/prompt_command.bash index 06a1323..236f683 100644 --- a/bash/bashrc.d/prompt_command.bash +++ b/bash/bashrc.d/prompt_command.bash @@ -1,6 +1,10 @@ # .bash_files # /PS +# Set default to empty so it will show up in printenv +SHORTPS1=${SHORTPS1:-} +export SHORTPS1 + # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt