mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-11-25 05:57:34 +00:00
Add instructions to import from fasd (#519)
This commit is contained in:
parent
59d80a7b60
commit
575cfd485c
22
README.md
22
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:
|
||||
|
||||
<details>
|
||||
<summary>autojump</summary>
|
||||
|
||||
```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:
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>z, z.lua, or zsh-z</summary>
|
||||
<summary>fasd / z / z.lua / zsh-z</summary>
|
||||
|
||||
```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` |
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
@ -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
|
||||
```
|
||||
|
||||
</details>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user