Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config file support, e.g. ~/.config/zoxide/config.json #935

Closed
milnak opened this issue Nov 15, 2024 · 2 comments
Closed

Add config file support, e.g. ~/.config/zoxide/config.json #935

milnak opened this issue Nov 15, 2024 · 2 comments

Comments

@milnak
Copy link

milnak commented Nov 15, 2024

Not a fan of cluttering up environment variables for configuration.

Can you add config file support for these environment variables:

  • _ZO_DATA_DIR Path for zoxide data files
  • _ZO_ECHO Print the matched directory before navigating to it when set to 1
  • _ZO_EXCLUDE_DIRS List of directory globs to be excluded
  • _ZO_FZF_OPTS Custom flags to pass to fzf
  • _ZO_MAXAGE Maximum total age after which entries start getting deleted
  • _ZO_RESOLVE_SYMLINKS Resolve symlinks when storing paths
@ajeetdsouza
Copy link
Owner

Sorry, this is not a planned feature. This was discussed in a previous issue, the consensus was that it's overkill for a cd command to have to check both a config file and env variables before starting up.

@jollySleeper
Copy link

Hi @ajeetdsouza,

Sorry for commenting on a closed issue and sorry for not checking out the old issue which you are referring to.

But are you saying that each time when zoxide runs it checks for Env Variables?
Also, I resonate with @milnak here. It's easy to manage different settings for zoxide in its own config folder.

Thank you for this awesome project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants