diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2010-06-24 11:32:46 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2010-06-24 11:32:46 +0200 |
commit | 316bbb96be20f1e22aceefaac1f5818fc2f98f0a (patch) | |
tree | bb52baae8a9211c40c802d46ba79706bb0d27733 /01_Functions.zsh | |
parent | 77c94aa5c8ae000cd3a5eb6a9ccca27d00c4ed25 (diff) |
[Funcs] zsh current git status watchdog
Diffstat (limited to '01_Functions.zsh')
-rw-r--r-- | 01_Functions.zsh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh index 33a0b4e..90764fb 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -214,6 +214,12 @@ get_git_status () echo $my_git_status } +zsh_status () +{ + cd ~/.zsh + echo "$(git describe --dirty="$(git diff | md5sum | sed 's/^\(.......\).*$/-D1rTY-\1/')" --always)" +} + normal_user () { if [ -e /etc/login.defs ] |