Instructions
This commit is contained in:
parent
cd56142f3e
commit
738beff8bc
|
|
@ -295,9 +295,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libc"
|
name = "libc"
|
||||||
version = "0.2.91"
|
version = "0.2.92"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "8916b1f6ca17130ec6568feccee27c156ad12037880833a3b842a823236502e7"
|
checksum = "56d855069fafbb9b344c0f962150cd2c1187975cb1c22c1522c240d8c4986714"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "memchr"
|
name = "memchr"
|
||||||
|
|
|
||||||
12
Makefile
12
Makefile
|
|
@ -41,16 +41,16 @@ endif
|
||||||
ifeq ($(NIX), true)
|
ifeq ($(NIX), true)
|
||||||
test:
|
test:
|
||||||
nix-shell --run 'cargo fmt -- --check --files-with-diff $(ci_color_always)'
|
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 check --all-features $(build_flags) $(ci_color_always)'
|
||||||
nix-shell --run 'cargo clippy --all-features $(ci_color_always) -- --deny warnings --deny clippy::all'
|
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 $(ci_color_always)'
|
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'
|
nix-shell --run 'cargo audit --deny warnings $(ci_color_always) --ignore=RUSTSEC-2020-0095'
|
||||||
else
|
else
|
||||||
test:
|
test:
|
||||||
cargo fmt -- --check --files-with-diff $(ci_color_always)
|
cargo fmt -- --check --files-with-diff $(ci_color_always)
|
||||||
cargo check --all-features $(ci_color_always)
|
cargo check --all-features $(build_flags) $(ci_color_always)
|
||||||
cargo clippy --all-features $(ci_color_always) -- --deny warnings --deny clippy::all
|
cargo clippy --all-features $(build_flags) $(ci_color_always) -- --deny warnings --deny clippy::all
|
||||||
cargo test --no-fail-fast $(ci_color_always)
|
cargo test --no-fail-fast $(build_flags) $(ci_color_always)
|
||||||
cargo audit --deny warnings $(ci_color_always) --ignore=RUSTSEC-2020-0095
|
cargo audit --deny warnings $(ci_color_always) --ignore=RUSTSEC-2020-0095
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -136,8 +136,8 @@ zoxide init nushell --hook prompt | save ~/.zoxide.nu
|
||||||
|
|
||||||
Then, in your Nushell configuration file:
|
Then, in your Nushell configuration file:
|
||||||
|
|
||||||
- Prepend `__zoxide_hook;` to your `prompt` variable.
|
- Prepend `__zoxide_hook;` to the `prompt` variable.
|
||||||
- Add the following two lines to your `startup` variable:
|
- Add the following lines to the `startup` variable:
|
||||||
- `zoxide init nushell --hook prompt | save ~/.zoxide.nu`
|
- `zoxide init nushell --hook prompt | save ~/.zoxide.nu`
|
||||||
- `source ~/.zoxide.nu`
|
- `source ~/.zoxide.nu`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -84,17 +84,12 @@ alias {{cmd}}i = __zoxide_zi ''
|
||||||
{{ SECTION }}
|
{{ SECTION }}
|
||||||
# To initialize zoxide with Nushell:
|
# 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`
|
# Then, in your Nushell configuration file:
|
||||||
# variable:
|
# - Prepend `__zoxide_hook;` to the `prompt` variable.
|
||||||
#
|
# - Add the following lines to the `startup` variable:
|
||||||
# "__zoxide_hook;"
|
# - `zoxide init nushell --hook prompt | save ~/.zoxide.nu`
|
||||||
#
|
# - `source ~/.zoxide.nu`
|
||||||
# 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"
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue