Finally stop using few-low-lettered globals; use proper Shellfu compliant
naming instead.
Also have separate variables for use in Bash PS*; these need extra chars
for hinting.
First, I'm not sure where I took the former icon, but it does not work
out of the bos on Fedora, so I decided to use another one rather than
try to find out.
Also when a system is accessed via SSH, it will use different
(fa-server) icon.
When case is left without quotes, Vim's default syntax highlighter shows
the left bracket in strong, error-y red style (not sure why, e.g.
ShellCheck does not complain about that notation). It seems to work
fine when quoted, though.
This likely breaks hostname setting when accessing via SSH, but:
* it's first version that is at least somehow readable,
* and also WE *MAY* have fixed the long-standing PITA escaping
errors that we used to get in urxvt if BASH_COMMAND had backslashes
in it!
* Remove excess comments and optional syntax (eg. EOL `;`),
* use non-conflict function names,
* simplify PS1 generation,
* close PROMPT_COMMAND setup into function,
The backslash was needed due to [bug on Jessie][2], but on all other
macnines I use this is printed, which is not desired.
[1]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767655
Taken from an [i3 forum answer][1] and edited to remove unnecessary info
(name@hostname and $HOME path)
[1]: https://faq.i3wm.org/question/2481/how-to-show-cli-application-name-in-window-title/?answer=2482#post-id-2482