With my starting to get deeper into Python development, I noticed an
issue with the virtualenv, where the current virtualenv was not set on
activation. I traced this to the fact that PS1 is always reset in the
prompt_header function, therefore, I need to add the virtual environment
details into prompt_header
This change checks if the virtual environment is set, if so, it adds the
current virtual environment to the prompt in magenta color.
Prior to this change, if I changed the dircolors configuration and
restarted the shell, it wouldn't reflect in the new shell because of the
check. I'd have to create a new terminal window to get the new colors.
This change eliminates the check for a set LS_COLORS variable and always
calls dircolors.
Having the ls alias default to `ls --color=auto` caused it to break on
OSX, since the version of ls that ships with OSX doesn't support the
`--color` option.
This change moves the alias into lscolors, since we already have a check
for OSX vs non-OSX (in my case, Linux). This allows the alias to work as
expected on Linux, while the environment variable LSCOLORS provides the
coloring option on OSX.
Prior to this change, I was using Bash as the default shell, but I have
now started using Zsh, which has more features.
This change adds the zshrc and related plugin files to source control
and installs them along with the bashrc files. This also updates tmux to
use zsh as the default shell and command.