Prompt fixes in zsh.

This commit is contained in:
2014-04-08 11:00:25 -07:00
parent cfc5cdbb6f
commit d8d47433d0
8 changed files with 51 additions and 47 deletions

View File

@@ -0,0 +1,15 @@
function current_directory() {
local PWD=$(pwd)
echo "${PWD/#$HOME/~}"
}
function git_prompt_info () {
if test -z $(parse_git_branch);
then
echo ""
else
echo "on $(parse_git_branch)"
fi
}
PS1='%u at $(hostname -s) in $(current_directory) $(git_prompt_info) $(colored_sandbox_string) '