Decode bytes before using os.path.join

Otherwise it will raise TypeError when trying to join str() and bytes() instance 
in python-3.3.

Fixes #654
Closes #655
Do not use .strip(), add two check git has
Merge branch 'fix-git_directory' into HEAD
tmux: Change session block color if prefix pressed

This modification to the tmux powerline binding allows the user to
easily identify when the prefix has been sent. When the prefix has
been sent, the session block changes from white to blue (matching the
color of the active window). This is accomplished using the conditional
functionality of tmux format strings and the 'client_prefix' format
variable. Unfortunately, the tmux parser fails to properly parse out
comma-separated format strings inside a format conditional, so those
have been split out into individual segments as well. Attempting to
re-combine the formats inside the conditionals will break this feature.
tmux: Colorize the last active window FG

Use a feature of tmux v1.8+ to change the FG color of the last active
window to blue. This uses the foo-{attr,bg,fg} format, which is
deprecated (although still available) starting with tmux v1.9 in favor
of the corresponding foo-style variable. However, tmux v1.9 is not yet
ubiquitous enough to move to the foo-style variables. For example, the
latest Ubuntu LTS (14.04) only has tmux v1.8 available in its
repositories, so the foo-{attr,bg,fg} variables prove to be more
'compatible' for now.

For future reference, here is the modification that should be made once
tmux v1.8 is deemed old enough to drop support for (or whenever the
deprecated foo-{attr,bg,fg} variables go away in the latest version of
tmux):

-set -g window-status-last-fg colour31
+set -g window-status-last-style fg=colour31

It might be appropriate to add version checking around some of these
types of options for maximum compatibility, but my initial attempt to
explore version checking in the tmux config file got extremely messy in
a hurry.
Fix shutdown function being always None

Problem reported by @IvanMalison
Undo renaming args to kwargs
Merge pull request #867 from ZyX-I/fix-shutdown

Fix shutdown function being always None
Merge pull request #864 from austinbeam/feature/tmux-colorize-last-window

tmux: Colorize the last active window FG
Merge pull request #863 from austinbeam/feature/tmux-indicate-prefix

tmux: Change session block color if prefix pressed
tmux: Shell variable definition for tmux version

Add variables for tmux major and minor version numbers. These can
subsequently be used to test for tmux version compatibility.
tmux: Check version for prefix active colorization

Prefix active colorization feature introduced by pull request #863
causes undesired behavior on older versions of tmux. Add version
checking and revert to old powerline configuration if the tmux version
is less than v1.8. tmux v1.8 was the first version to support the
client_prefix format variable.
tmux: Check version for last window indication

Last active window indication feature introduced by pull request #864
causes undesired behavior on older versions of tmux. Add version
checking to determine which method for feature implementation to use,
dropping the feature entirely for tmux versions less that v1.8. For tmux
v1.9, use the newer 'window-status-last-style' option rather than the
deprecated (starting with v1.9) 'window-status-last-fg' option. Ideally,
the other `foo-{attr,fg,bg}` options used in the `tmux` powerline config
file should also be version checked and replaced with the corresponding
`foo-style` option as well.
Merge pull request #870 from austinbeam/feature/869-tmux-version-checking

tmux version checking (Issue #869)
Move some settings from .local.vimrc to .editorconfig

Closes #865 as WONTFIX. It is better to have one .editorconfig then a number of 
editor-specific files.
Merge branch 'add-editorconfig' into develop
Add support for omitting VALUE

This will remove error reported in #853, but not its cause
Merge pull request #871 from ZyX-I/fix-853

Add support for omitting VALUE
Allow disabling prompt and/or tmux support in shells

Fixes #849
Merge branch 'allow-disabling-prompt-support' into develop