On 11/20/2021 5:57 AM, Michael Käppler wrote:
The thing is that it is part of a 'heredoc' string, which is written to .bashrc. Without escaping the '$', the shell will evaluate the result of$(declare -F __git_ps1 &>/dev/null && __git_ps1 " (%s)") before writing to .bashrc, which is not what we want. Instead it should evaluate it at runtime. So you should simply remove the backslash before $(declare ...
Got it. Thank you, John
