Commit Graph

11 Commits

Author SHA1 Message Date
Cole Helbling 3be75b1bb4
Implement _ZO_EXCLUDE_DIRS
_ZO_EXCLUDE_DIRS is a list of paths (separated by colons, `:`, on
Unix-based systems, and semicolons, `;`, on Windows) that should be
excluded from the database. Example:

    _ZO_EXCLUDE_DIRS="$HOME:$HOME/something/super/secret:$HOME/caused/by/background/cds"
2020-03-28 08:34:06 -07:00
Ajeet D'Souza e46734fb58 Manually parse environment variables 2020-03-28 00:38:36 +05:30
Ajeet D'Souza e3c57f7381 Rename `migrate` command to `import` 2020-03-27 19:26:07 +05:30
Ajeet D'Souza f06ece7a4f Store paths as PathBuf rather than String 2020-03-27 17:11:26 +05:30
Ajeet D'Souza 03e8cd47a2 Fix exit codes in z and fzf 2020-03-17 12:34:53 +05:30
Ajeet D'Souza 146e5709fb Fix exit codes in 'z' command 2020-03-16 14:26:59 +05:30
Cole Helbling 083a834310
Allow merging when migrating from `z` (#33)
If the user passes the `--merge` flag to the `migrate` subcommand, all
duplicate entries will have their ranks and epochs updated: the rank
will be the sum of the stored rank and the newly-parsed rank, while the
epoch will be the maximum of the stored epoch and the newly-parsed
epoch.

This allows one to import from the `z` database even after having used
`zoxide` for any amount of time. This also permits a user who has
already sourced the init script to import their old database without
needing to do something like `rm ~/.zo && zoxide migrate ~/.z`.
2020-03-15 23:48:59 +05:30
Ajeet D'Souza f4cd1159c5 Add $_ZO_ECHO to echo match before navigating 2020-03-15 17:55:54 +05:30
Ajeet D'Souza eb21727868 Use envy to parse environment variables 2020-03-13 14:12:20 +05:30
Ajeet D'Souza 41aabccb8f Add PWD hook for bash + fish 2020-03-13 07:09:21 +05:30
Ajeet D'Souza 9c8e8da71a Refactor + support PWD hook for zsh 2020-03-13 06:19:37 +05:30