summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
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