Bugfix: avoid replacing "/home/user-alt" by "~-alt"

Add escaped backslashes so as to replace the "/home/user/" string in the path by "~/"
Add case for screen title escape chars
Suppress double escape in screen title
Add more generic test for screen/byobu/tmux title
Revert "avoid replacing "/home/user-alt" by "~-alt""

Doesn't work in home folder as $HOME and $PWD don't have any trailing "/".
This reverts commit 4a64c6ccec5efe49e2feb7a78dff556638088093.
bugfix #107: zsh-compatible if statement

An if statement was used without the conditional operator: if [[ "" ]]
This patch adds one: if [[ ! -z "" ]]
Making the code zsh compatible.
Replace lptag by prompt_tag

prompt_tag is more consistent with the other prompt_* functions.
Differents colors for differents hosts you SSH in

Adds the LP_ENABLE_SSH_COLORS option to use a numeric hash of the hostname as the displayed color.
 Issue #108 - Zsh:error in git dir if there is new files

It was a problem with local declaration and assignation in the same
time. Don't ask me why zsh complains, but it did.
Also, I took the liberty to make a similar change en bzr part, just a
precaution.
Issue #107 - same error appears with LP_ENABLE_SSH_COLORS new feature

Same problem as #107, same solution ;)
Merge pull request #112 from ldidry/107

Issue #107 - same error appears with LP_ENABLE_SSH_COLORS new feature
Merge pull request #111 from ldidry/108

 Issue #108 - Zsh:error in git dir if there is new files
git: Add support for detached head state
git: check the correct remote branch for has_commit

Previously it was always checking against origin/$branch, but the
remote branch can have any name and the remote branch can also have
any name.
Fix custom.ps1 sourcing
Merge branch 'fix-git-integration' of https://github.com/jonasb/liquidprompt into develop
Merge branch 'ps1' of https://github.com/ldidry/liquidprompt into develop
Merge branch 'master' into develop

Conflicts:
	liquidprompt
bugfix: do not try to source if there is no file
Update the README

Bazaar support and LP_PS1_FILE were missing.