Prior to this change, we were setting PS1 manually and having to muck
with the \[, \] pairs for terminal escapes was proving to be too much.
Instead, we moved to using a function used in PROMPT_COMMAND which
displays the user, hostname and directory on one line, followed by the
actual prompt line which displays the git status.
This change forces the SSH agent to use the GPG agent for the
authorization keys. This is used in order to use a smartcard as the
identity for SSH authentication.
It turns out that when tmux was launched with the TERM set to xterm, it
was causing tmux colors to go out of whack. This imports the original
setting from my previous environment which sets the tmux alias to launch
with the TERM set to screen-256color-bce
When executing commands over SSH, such as SCP, the server (tput)
complains that there is no terminal defined. This fix sets the T_*
variables only if the TERM variable is not empty.
Add a function add_to_path so that it can prepend any specified path
to the PATH environment variable, but only if it is not already there.
Don't worry about (re)setting the LS_COLORS environment if it's already
been set by the system bashrc.