Commit Graph

13 Commits (a58e8bdc8cf4c51c80dc9e63eef52e95214c54f2)

Author SHA1 Message Date
Arav Singhal 1edb74ba91 Consider delimiter length in dir truncate right
Truncating the path from the right now takes in account the delimiter
length, so that directories with names shorter than truncated name +
delimiter are displayed properly.

For example, if SHORTEN_DIR_LENGTH is 4 and the delimiter is "..",
"../tests/.." and "../custom/.." are not incorrectly "truncated" to
"../test../.." and "../cust../..", both of which are longer or the same
length as the original.
8 years ago
Ben Hilburn c4fdc8f708 Improved speed of `prompt_vcs` by 50%-66%. 8 years ago
Alex LaFroscia 4ca6938801 Apply max dir length to package name shortener 9 years ago
Ben Hilburn 64d81a2b36 Merge pull request #212 from dritter/unit_testing
Adding Unit Tests, supported  by Travis-CI
9 years ago
Dominik Ritter d7a0f49391 Add documentation for printSizeHumanReadable 9 years ago
Dominik Ritter e9da3d5146 Fix joining segments 9 years ago
Dominik Ritter 15665a4f95 Joining conditional segments now work as expected. If between the last
printed segment is a full but conditional segment, the joined one gets
promoted.
This fixes #186
9 years ago
Dominik Ritter ed28b8d26f Use explicit word splitting. No need to set SH_WORD_SPLIT 9 years ago
Dominik Ritter f9957ca559 Used typeset to define the local array. This does the trick on linux. 9 years ago
Dominik Ritter ce7b99cdaf Added a mechanism to make deprecated segments visible to the user. 9 years ago
Dominik Ritter 0fa635275c Extracted color functions to a separate file. 9 years ago
Dominik Ritter d6584e13da Extracted icons into a separate file. 9 years ago
Dominik Ritter fbd1b99bab Renamed "power-utilities.zsh" to just "utilities.zsh". 9 years ago