For example, in a resized terminal:

the path is too long, and wraps. This should be made to the middle section is replaced with an ellipsis.
We always want to display the first path part, then the ellipsis, and as much of the tail of the path as the width allows. E.g.:
example/.../some/folder
~/.../some/folder
/.../some/folder