friedow / centerpiece

Your trusty omnibox search.
MIT License
174 stars 6 forks source link

✨ plugins: add `$GIT_DIRECTORY_NAME` env variable #86

Closed a-kenji closed 4 months ago

a-kenji commented 4 months ago

Expose the $GIT_DIRECTORY_NAME environment variable to the git_repositories plugin.

This is useful for setting app_ids, or tmux session names, for example.

I am not sure about error handling here. The unwraps are there because:

We could return an empty string in an error case, that way scripts might still succeed and fill in a default value.