Commands to Execute Before Printing The Prompt
$PROMPT_COMMAND is either an array or a regular variable. Each value is executed as a command before the primary prompt
$PS1 is executed.
This is only useful for interactive terminals.
Show number of files in
$HOME in the prompt: :
BashSupport Pro is a Bash IDE with support for $PROMPT_COMMAND – try it now!