summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-04-02 10:49:26 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-04-02 10:49:26 +0300
commit94af6aae4335a01b522cc1379d6e1ff96025e3fb (patch)
treec378ffc4a0c694f0b40c19cb1e2d7c5745973a45 /powerlevel9k.zsh-theme
parentaadf37bd35c960fd337f73f78b91774e2ee13b0f (diff)
Better implementation of counting Classes and Tests for RSpec.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r--powerlevel9k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index f279f994..92efcaee 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -313,8 +313,8 @@ prompt_aws() {
# RSpec test ratio
prompt_rspec_stats() {
if [[ (-d app && -d spec) ]]; then
- local code_amount=$(wc -l app/**/*.rb | grep -oE "[0-9]+" | tail -n 1)
- local tests_amount=$(wc -l spec/**/*.rb | grep -oE "[0-9]+" | tail -n 1)
+ local code_amount=$(ls -1 app/**/*.rb | wc -l)
+ local tests_amount=$(ls -1 spec/**/*.rb | wc -l)
build_test_stats $1 $code_amount $tests_amount "RSpec"
fi