Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Provides a smart way to determine the number 'top' lines #118
Looks at the prompt or PS1 environmental variables to determine the number of
I've tested in on my end in Windows, and it works as expected. I don't have Linux or Mac box, so I haven't been able to test it there.
Because of the way it works (by counting newlines), it won't work exactly right if the prompt goes over the line end without a line break (i.e. for a really long path) or if there are conditional linebreaks in the PS1 variable.
Tests have been added and updated as well.
Current coverage is 87.48%
@@ master #118 diff @@ ======================================= Files 50 52 +2 Lines 2562 2724 +162 Methods 0 0 Branches 406 415 +9 ======================================= - Hits 2497 2383 -114 - Misses 38 315 +277 + Partials 27 26 -1
@MinchinWeb I had another look at your code, and I was wondering why you implemented