Skip to content

Commit a5369be

Browse files
committed
Prepare for release v0.2.1
1 parent 083a834 commit a5369be

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

Diff for: Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "zoxide"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
authors = ["Ajeet D'Souza <[email protected]>"]
55
description = "A cd command that learns your habits"
66
repository = "https://github.com/ajeetdsouza/zoxide/"

Diff for: README.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ A cd command that learns your habits
1616
- [bash](#bash)
1717
- [fish](#fish)
1818
- [Configuration](#configuration)
19+
- [`init` flags](#init-flags)
1920
- [Environment variables](#environment-variables)
2021

2122
## Introduction
@@ -60,7 +61,11 @@ If you want the interactive fuzzy selection feature, you will also need to insta
6061

6162
### Step 2: Adding `zoxide` to your shell
6263

63-
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`.
64+
If you currently use `z`, `z.lua`, or `zsh-z`, you may want to first migrate your existing database to `zoxide`:
65+
66+
```sh
67+
zoxide migrate /path/to/db
68+
```
6469

6570
#### zsh
6671

@@ -88,7 +93,16 @@ zoxide init fish | source
8893

8994
## Configuration
9095

96+
### `init` flags
97+
98+
- `--no-define-aliases`: don't define extra aliases like `zi`, `zq`, `za`, and `zr`
99+
- `--hook <HOOK>`: change the event that adds a new entry to the database (default: `prompt`)
100+
- `none`: never add entries - this will make `zoxide` useless unless you manually configure a hook
101+
- `prompt`: add an entry at every prompt
102+
- `pwd`: add an entry whenever you change directories
103+
91104
### Environment variables
92105

106+
- `$_ZO_ECHO`: `z` will print the matched directory before navigating to it
93107
- `$_ZO_DATA`: sets the location of the database (default: `~/.zo`)
94108
- `$_ZO_MAXAGE`: sets the maximum total rank after which entries start getting deleted

Diff for: src/main.rs

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ use crate::env::Env;
99
use anyhow::{Context, Result};
1010
use structopt::StructOpt;
1111

12-
// TODO: use structopt to parse env variables: <https://github.com/TeXitoi/structopt/blob/master/examples/env.rs>
13-
1412
#[derive(Debug, StructOpt)]
1513
#[structopt(about = "A cd command that learns your habits")]
1614
enum Zoxide {

Diff for: src/types.rs

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

0 commit comments

Comments
 (0)