[bash] rewrite all custom-prompt to use PROMPT_COMMAND (instead PS1)

But there is bugs, with calculating length of prompt string. Like in
previous commits, but after this patch, seems calculated length = 0
[bash] modify PS1 in PROMPT_COMMAND to fix length of PS1

This whole patches for fixing prompt, and not write code inside of PS1,
only functions, that print messages.

But after this patch one of bash processes, had 100% CPU usage
[bash] custom-prompt: move tput into separate helper function
[bash] custom-prompt: final fix for overwriting text in prompt.

Since we use PROMPT_COMMAND to generate PS1, we just need proper
escaping ( next symbols for example: [ ] ), and that it, after this
patch calculation of PS1 length works fine

See-also:
189ee05f7b8a9c8f87fd9d092bea63cd0522d01a...e398337f4a8e23bcb21bf1a28e262bbaa95a78cd
[bash] custom-prompt: drop ugly replacements for "\w" in PS1

Since we _generate_ PS1 we can just add "\w" there, and PROMPT_DIRTRIM
will change behaviour of this escape symbol, instead of custom
_short_path helper.