diff options
author | Claudio Bandera <claudio.bandera@kit.edu> | 2015-08-28 10:35:47 +0200 |
---|---|---|
committer | Claudio Bandera <claudio.bandera@kit.edu> | 2015-08-30 23:10:12 +0200 |
commit | 989911c595b19aac9ecb4aa87eb2ac4d57610c86 (patch) | |
tree | 4ffe656df3d008cdf751dc8bcf5d9882ae4de14c /radar-base.sh | |
parent | da76c7dcbc9b52e881c864c7014dbf2a0aaf43b5 (diff) | |
download | git-sonar-989911c595b19aac9ecb4aa87eb2ac4d57610c86.tar.gz git-sonar-989911c595b19aac9ecb4aa87eb2ac4d57610c86.zip |
Added git stash indicator
Diffstat (limited to 'radar-base.sh')
-rwxr-xr-x | radar-base.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/radar-base.sh b/radar-base.sh index b7074d8..aa8ed2f 100755 --- a/radar-base.sh +++ b/radar-base.sh @@ -469,3 +469,17 @@ zsh_color_remote_commits() { printf %s "$remote" } + +bash_stash_status() { + local number_stashes="$(git stash list | wc -l)" + if [ $number_stashes -gt 0 ]; then + printf " $number_stashes\x01\033[1;33m\x02␣\x01\033[0m\x02)" + fi +} + +zsh_stash_status() { + local number_stashes="$(git stash list | wc -l)" + if [ $number_stashes -gt 0 ]; then + printf %s " $number_stashes%{$fg_bold[yellow]%}␣%{$reset_color%})" + fi +}
\ No newline at end of file |