Refactor some stuff.

This commit is contained in:
2014-04-14 20:49:44 -07:00
parent 94c3a79793
commit 0ee8ce71af
7 changed files with 15 additions and 31 deletions

View File

@@ -1 +0,0 @@
alias sourcefile_abspath='$(readlink -f "$BASH_SOURCE" | xargs dirname)'

View File

@@ -19,16 +19,16 @@ function current_directory() {
}
function git_prompt_info() {
if test -z $(parse_git_branch);
if test -z $(git branch-or-sha);
then
echo ""
else
echo " on $(parse_git_branch)$(git_status_character)"
echo " on $(git branch-or-sha)$(git_status_character)"
fi
}
function git_status_character() {
if git_is_dirty;
if git dirty;
then
echo "✘"
else