Skip to content

Commit

Permalink
Prepare for release v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ajeetdsouza committed Mar 15, 2020
1 parent 083a834 commit a5369be
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zoxide"
version = "0.2.0"
version = "0.2.1"
authors = ["Ajeet D'Souza <[email protected]>"]
description = "A cd command that learns your habits"
repository = "https://github.com/ajeetdsouza/zoxide/"
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a5369be

Please sign in to comment.