I installed drush and as part of the installation it makes some changes to the PROMPT
...
# Optional. Enrich the bash startup file with completion and aliases.
drush init
...
Whenever I execute an command at the prompt I get the message:
bash: __drush_ps1: command not found
The env command displays PROMPT_COMMAND as
PROMPT_COMMAND=__git_ps1 "\u@\h \w" "$(__drush_ps1 "[%s]") \\\$ "
I think somewhere at the global level the PROMPT_COMMAND variable is set to that value but I can't locate it in any of the global environment variables and profile scripts.
Because drush was installed as root commands executed as root don't produce that error message. root has a .drush directory with some drush scripts.
UPDATE: After inquiring from the drupal forum https://drupal.stackexchange.com/questions/198484/where-does-the-drush-installtation-command-set-the-prompt-command-variable/198487 I know which of the drush installation commands create that setting. What I can't find is which of the Linux bash and environment files execute that setting at logon time. Any new account I create produces that error when I execute a command at the shell, so the setting must be at a global level. One of the files here or in the related directories /etc/{bash.bashrc,bash_completion, bash_completion.d,environment} must have the command that sets the PROMPT_COMMAND variable at logon time, but I can't find it.
Any ideas?