Commit Graph

2 Commits

Author SHA1 Message Date
Anthony Ruhier bc7108c10f
Add _ZO_RESOLVE_SYMLINKS to resolve or not symlinks
Fixes #80.

Disable by default the symlinks resolution, making a symlink and its
target 2 different entries in the database. Adds the
_ZO_RESOLVE_SYMLINKS env variable to re-enable it.

Example:
  /tmp/foo-target is a directory
  /tmp/foo symlinks to /tmp/foo-target

With _ZO_RESOLVE_SYMLINKS=1, `z add /tmp/foo` adds `/tmp/foo-target` in the database.

With _ZO_RESOLVE_SYMLINKS=0 or unset, `z add /tmp/foo` adds `/tmp/foo` in the database.
2020-07-01 10:43:01 +02:00
Ajeet D'Souza 4731533352 $_ZO_ECHO must be set to `1` to be enabled 2020-05-03 02:42:42 +05:30