From 493042f6bc8dfd84c5875776c7e8008013bd58cd Mon Sep 17 00:00:00 2001 From: Maxim Uvarov Date: Mon, 8 May 2023 18:42:03 +0800 Subject: [PATCH 1/2] Added instructions to import CWDs history of Nushell --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 16e1fbd3..fe636ae6 100644 --- a/README.md +++ b/README.md @@ -341,6 +341,17 @@ zoxide can be installed in 4 easy steps: > ``` + +
+ Nushell + + > In case you have enabled `.sqlite` history storage ([help](https://github.com/nushell/nushell/blob/a2dd948e71c3cbdecfa1a2dbf35282707e151b02/crates/nu-utils/src/sample_config/default_config.nu#L268)) in Nushell, you can import all visited directories with the command: + > + > ```sh + > history | get cwd | uniq | each {|i| zoxide add $i} + > ``` + +
## Configuration From cb55b3199983e796122fa03687463283df358c28 Mon Sep 17 00:00:00 2001 From: Maxim Uvarov Date: Mon, 8 May 2023 18:47:21 +0800 Subject: [PATCH 2/2] Add instructions for Nushell --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fe636ae6..8ff0820d 100644 --- a/README.md +++ b/README.md @@ -345,7 +345,9 @@ zoxide can be installed in 4 easy steps:
Nushell - > In case you have enabled `.sqlite` history storage ([help](https://github.com/nushell/nushell/blob/a2dd948e71c3cbdecfa1a2dbf35282707e151b02/crates/nu-utils/src/sample_config/default_config.nu#L268)) in Nushell, you can import all visited directories with the command: + > *If you have enabled `.sqlite` history storage ([help](https://github.com/nushell/nushell/blob/a2dd948e71c3cbdecfa1a2dbf35282707e151b02/crates/nu-utils/src/sample_config/default_config.nu#L268)), you can import all visited directories* + > + > Run this command in Nushell: > > ```sh > history | get cwd | uniq | each {|i| zoxide add $i}