summaryrefslogtreecommitdiff
path: root/01_Functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to '01_Functions.zsh')
-rw-r--r--01_Functions.zsh15
1 files changed, 10 insertions, 5 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index b50e040..73d6775 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -216,13 +216,18 @@ get_git_status ()
zsh_status ()
{
- cd ~/.zsh >/dev/null
- _status="$(git describe --always)"
- if [ "$( (git diff --cached ; git diff) | head -n1)" != "" ]
+ if [ $ZDOTDIR != "" ]
then
- _status=$_status"-$( (git diff --cached ; git diff) | md5sum | sed 's/^\(.......\).*$/-D1rTY-\1/')"
+ cd $ZDOTDIR >/dev/null
+ _status="$(git describe --always)"
+ if [ "$( (git diff --cached ; git diff) | head -n1)" != "" ]
+ then
+ _status=$_status"-$( (git diff --cached ; git diff) | md5sum | sed 's/^\(.......\).*$/-D1rTY-\1/')"
+ fi
+ echo $_status
+ else
+ echo
fi
- echo $_status
}
normal_user ()