From 575cfd485c9b256465fc87e63eb0199124df7b16 Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Wed, 18 Jan 2023 09:20:45 +0530 Subject: [PATCH] Add instructions to import from fasd (#519) --- README.md | 22 ++++++++++++++++------ man/man1/zoxide-import.1 | 2 +- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2d65d42..94c46e5 100644 --- a/README.md +++ b/README.md @@ -288,17 +288,17 @@ It can be installed from [here][fzf-installation]. ### *Step 4: Import your data (optional)* -If you currently use any of the following utilities, you may want to import +If you currently use any of the following plugins, you may want to import your data into zoxide:
autojump ```sh -zoxide import --from autojump path/to/db +zoxide import --from=autojump "/path/to/autojump/db" ``` -The default path varies according to your system: +The path usually varies according to your system: | OS | Path | Example | | ------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------ | @@ -309,12 +309,22 @@ The default path varies according to your system:
-z, z.lua, or zsh-z +fasd / z / z.lua / zsh-z ```sh -zoxide import --from z path/to/db +zoxide import --from=z "path/to/z/db" ``` +The path usually varies according to your system: + +| Plugin | Path | +| ---------------- | ----------------------------------------------------------------------------------- | +| fasd | `$_FASD_DATA` or `$HOME/.fasd` | +| z | `$_Z_DATA` or `$HOME/.z` | +| z.lua (bash/zsh) | `$_ZL_DATA` or `$HOME/.zlua` | +| z.lua (fish) | `$XDG_DATA_HOME/zlua/zlua.txt` or `$HOME/.local/share/zlua/zlua.txt` or `$_ZL_DATA` | +| zsh-z | `$ZSHZ_DATA` or `$_Z_DATA` or `$HOME/.z` | +
@@ -323,7 +333,7 @@ zoxide import --from z path/to/db ```powershell $db = New-TemporaryFile (Get-ZLocation).GetEnumerator() | ForEach-Object { Write-Output ($_.Name+'|'+$_.Value+'|0') } | Out-File $db -zoxide import --from z $db +zoxide import --from=z $db ```
diff --git a/man/man1/zoxide-import.1 b/man/man1/zoxide-import.1 index 1c0a3b7..d008692 100644 --- a/man/man1/zoxide-import.1 +++ b/man/man1/zoxide-import.1 @@ -11,7 +11,7 @@ The format of the database being imported: tab(|); l l. \fBautojump\fR - \fBz\fR|(for \fBz\fR, \fBz.lua\fR, or \fBzsh-z\fR) + \fBz\fR|(for \fBfasd\fR, \fBz\fR, \fBz.lua\fR, or \fBzsh-z\fR) .TE .sp Note: zoxide only imports paths from autojump, since its matching