geometry-zsh / geometry

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

Extract time helper functions to a separate file #203

Closed frm closed 6 years ago

frm commented 6 years ago

If you load the git plugin without exec_time, the following error happens:

prompt_geometry_git_time_since_commit:9: command not found: prompt_geometry_seconds_to_human_time
master :: •

Sample configuration:

GEOMETRY_PROMPT_PLUGINS_PRIMARY=(git)
GEOMETRY_PROMPT_PLUGINS_SECONDARY=(path)

This happens because git depends on functions defined in exec_time. This PR solves this by extracting these functions to a separate lib/time.zsh file.

frm commented 6 years ago

Ping @desyncr @jedahan

jedahan commented 6 years ago

will look at this evening (in ~4 hours)

jedahan commented 6 years ago

thanks for being so patient

frm commented 6 years ago

All good :)