mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2025-04-10 18:21:51 +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)*
|
### *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:
|
your data into zoxide:
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>autojump</summary>
|
<summary>autojump</summary>
|
||||||
|
|
||||||
```sh
|
```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 |
|
| OS | Path | Example |
|
||||||
| ------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------ |
|
| ------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------ |
|
||||||
@ -309,12 +309,22 @@ The default path varies according to your system:
|
|||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>z, z.lua, or zsh-z</summary>
|
<summary>fasd / z / z.lua / zsh-z</summary>
|
||||||
|
|
||||||
```sh
|
```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>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@ -323,7 +333,7 @@ zoxide import --from z path/to/db
|
|||||||
```powershell
|
```powershell
|
||||||
$db = New-TemporaryFile
|
$db = New-TemporaryFile
|
||||||
(Get-ZLocation).GetEnumerator() | ForEach-Object { Write-Output ($_.Name+'|'+$_.Value+'|0') } | Out-File $db
|
(Get-ZLocation).GetEnumerator() | ForEach-Object { Write-Output ($_.Name+'|'+$_.Value+'|0') } | Out-File $db
|
||||||
zoxide import --from z $db
|
zoxide import --from=z $db
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
@ -11,7 +11,7 @@ The format of the database being imported:
|
|||||||
tab(|);
|
tab(|);
|
||||||
l l.
|
l l.
|
||||||
\fBautojump\fR
|
\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
|
.TE
|
||||||
.sp
|
.sp
|
||||||
Note: zoxide only imports paths from autojump, since its matching
|
Note: zoxide only imports paths from autojump, since its matching
|
||||||
|
Loading…
x
Reference in New Issue
Block a user