Question about PROMPT_COMMAND variable
devitalio opened this issue · 1 comments
devitalio commented
Why in prompt.sh we need PROMPT_COMMAND="find_git_branch; find_git_dirty; $PROMPT_COMMAND"
?
More specifically why we add the existing PROMPT_COMMAND making it grow?
devitalio commented
Found it, PROMPT_COMMAND
is a bash var that sets what to execute before PROMPT is dispalyed. We save potentially already altered PROMPT_COMMAND
https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x264.html