geometry-zsh / geometry

geometry is a minimal, fully customizable and composable zsh prompt theme
ISC License
931 stars 94 forks source link

Allow customizing path truncation #308

Closed itsxaos closed 3 years ago

itsxaos commented 3 years ago

Replaced hard-coded 3 with GEOMETRY_PATH_TRUNCATE variable (defaults to 3). Now maximum amount of directories to show can be customized by setting that variable.

This is implemented a little different to how the other defaults are implemented, but it seemed more efficient to just set the variable to the default if it wasn't set, because the variable needs to be checked anyway.