Closed devitalio closed 4 years ago
Why in prompt.sh we need PROMPT_COMMAND="find_git_branch; find_git_dirty; $PROMPT_COMMAND"?
PROMPT_COMMAND="find_git_branch; find_git_dirty; $PROMPT_COMMAND"
More specifically why we add the existing PROMPT_COMMAND making it grow?
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
PROMPT_COMMAND
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?