Prepare for release v0.2.1

This commit is contained in:
Ajeet D'Souza 2020-03-16 00:06:06 +05:30
parent 083a834310
commit a5369beaa4
5 changed files with 17 additions and 6 deletions

2
Cargo.lock generated
View File

@ -369,7 +369,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "zoxide"
version = "0.2.0"
version = "0.2.1"
dependencies = [
"anyhow 1.0.26 (registry+https://github.com/rust-lang/crates.io-index)",
"bincode 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -1,6 +1,6 @@
[package]
name = "zoxide"
version = "0.2.0"
version = "0.2.1"
authors = ["Ajeet D'Souza <98ajeet@gmail.com>"]
description = "A cd command that learns your habits"
repository = "https://github.com/ajeetdsouza/zoxide/"

View File

@ -16,6 +16,7 @@ A cd command that learns your habits
- [bash](#bash)
- [fish](#fish)
- [Configuration](#configuration)
- [`init` flags](#init-flags)
- [Environment variables](#environment-variables)
## Introduction
@ -60,7 +61,11 @@ If you want the interactive fuzzy selection feature, you will also need to insta
### Step 2: Adding `zoxide` to your shell
By default, `zoxide` defines the `z`, `zi`, `za`, `zq`, and `zr` aliases. If you'd like to go with just the barebones `z`, pass the `--no-define-aliases` flag to `zoxide init`.
If you currently use `z`, `z.lua`, or `zsh-z`, you may want to first migrate your existing database to `zoxide`:
```sh
zoxide migrate /path/to/db
```
#### zsh
@ -88,7 +93,16 @@ zoxide init fish | source
## Configuration
### `init` flags
- `--no-define-aliases`: don't define extra aliases like `zi`, `zq`, `za`, and `zr`
- `--hook <HOOK>`: change the event that adds a new entry to the database (default: `prompt`)
- `none`: never add entries - this will make `zoxide` useless unless you manually configure a hook
- `prompt`: add an entry at every prompt
- `pwd`: add an entry whenever you change directories
### Environment variables
- `$_ZO_ECHO`: `z` will print the matched directory before navigating to it
- `$_ZO_DATA`: sets the location of the database (default: `~/.zo`)
- `$_ZO_MAXAGE`: sets the maximum total rank after which entries start getting deleted

View File

@ -9,8 +9,6 @@ use crate::env::Env;
use anyhow::{Context, Result};
use structopt::StructOpt;
// TODO: use structopt to parse env variables: <https://github.com/TeXitoi/structopt/blob/master/examples/env.rs>
#[derive(Debug, StructOpt)]
#[structopt(about = "A cd command that learns your habits")]
enum Zoxide {

View File

@ -1,3 +1,2 @@
// TODO: convert these to newtypes
pub use f64 as Rank;
pub use i64 as Epoch; // use a signed integer so subtraction can be performed on it