From 738beff8bcb8d024641db00365528c83218227e4 Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Wed, 31 Mar 2021 20:40:37 +0530 Subject: [PATCH] Instructions --- Cargo.lock | 4 ++-- Makefile | 12 ++++++------ README.md | 4 ++-- templates/nushell.txt | 19 +++++++------------ 4 files changed, 17 insertions(+), 22 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7e6e92d..c380296 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -295,9 +295,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.91" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8916b1f6ca17130ec6568feccee27c156ad12037880833a3b842a823236502e7" +checksum = "56d855069fafbb9b344c0f962150cd2c1187975cb1c22c1522c240d8c4986714" [[package]] name = "memchr" diff --git a/Makefile b/Makefile index 310f632..f0cd743 100644 --- a/Makefile +++ b/Makefile @@ -41,16 +41,16 @@ endif ifeq ($(NIX), true) test: nix-shell --run 'cargo fmt -- --check --files-with-diff $(ci_color_always)' - nix-shell --run 'cargo check --all-features $(ci_color_always)' - nix-shell --run 'cargo clippy --all-features $(ci_color_always) -- --deny warnings --deny clippy::all' - nix-shell --run 'cargo test --all-features --no-fail-fast $(ci_color_always)' + nix-shell --run 'cargo check --all-features $(build_flags) $(ci_color_always)' + nix-shell --run 'cargo clippy --all-features $(build_flags) $(ci_color_always) -- --deny warnings --deny clippy::all' + nix-shell --run 'cargo test --all-features --no-fail-fast $(build_flags) $(ci_color_always)' nix-shell --run 'cargo audit --deny warnings $(ci_color_always) --ignore=RUSTSEC-2020-0095' else test: cargo fmt -- --check --files-with-diff $(ci_color_always) - cargo check --all-features $(ci_color_always) - cargo clippy --all-features $(ci_color_always) -- --deny warnings --deny clippy::all - cargo test --no-fail-fast $(ci_color_always) + cargo check --all-features $(build_flags) $(ci_color_always) + cargo clippy --all-features $(build_flags) $(ci_color_always) -- --deny warnings --deny clippy::all + cargo test --no-fail-fast $(build_flags) $(ci_color_always) cargo audit --deny warnings $(ci_color_always) --ignore=RUSTSEC-2020-0095 endif diff --git a/README.md b/README.md index e65368b..cce127c 100644 --- a/README.md +++ b/README.md @@ -136,8 +136,8 @@ zoxide init nushell --hook prompt | save ~/.zoxide.nu Then, in your Nushell configuration file: -- Prepend `__zoxide_hook;` to your `prompt` variable. -- Add the following two lines to your `startup` variable: +- Prepend `__zoxide_hook;` to the `prompt` variable. +- Add the following lines to the `startup` variable: - `zoxide init nushell --hook prompt | save ~/.zoxide.nu` - `source ~/.zoxide.nu` diff --git a/templates/nushell.txt b/templates/nushell.txt index 87f29e9..c3ab8ea 100644 --- a/templates/nushell.txt +++ b/templates/nushell.txt @@ -84,17 +84,12 @@ alias {{cmd}}i = __zoxide_zi '' {{ SECTION }} # To initialize zoxide with Nushell: # -# Step 1: Initialize zoxide's config file: +# Initialize zoxide's Nushell script: # -# touch ~/.zoxide.nu +# zoxide init nushell --hook prompt | save ~/.zoxide.nu # -# Step 2: In your Nushell configuration file, prepend this to the `prompt` -# variable: -# -# "__zoxide_hook;" -# -# Step 3: In your Nushell configuration file, add the following lines to the -# `startup` variable: -# -# "zoxide init nushell --hook prompt | save ~/.zoxide.nu" -# "source ~/.zoxide.nu" +# Then, in your Nushell configuration file: +# - Prepend `__zoxide_hook;` to the `prompt` variable. +# - Add the following lines to the `startup` variable: +# - `zoxide init nushell --hook prompt | save ~/.zoxide.nu` +# - `source ~/.zoxide.nu`