mirror of
https://github.com/skywind3000/z.lua
synced 2026-03-19 06:09:48 +00:00
Updated FAQ (markdown)
5
FAQ.md
5
FAQ.md
@@ -32,7 +32,7 @@ When you are using `j xxx` it will first try `cd xxx` and then `z xxx` if cd fai
|
||||
|
||||
## How to import data from bash / zsh command history ?
|
||||
|
||||
Issue [#46](https://github.com/skywind3000/z.lua/issues/46) ask for a script to import some history path from bash command history after a fresh install of z.lua and [@antonalekseev](https://github.com/antonalekseev) provided two script below:
|
||||
Issue [#46](https://github.com/skywind3000/z.lua/issues/46) asked for a script to import some history path from bash command history after a fresh install of z.lua and [@antonalekseev](https://github.com/antonalekseev) provided two script below:
|
||||
|
||||
for bash:
|
||||
|
||||
@@ -42,7 +42,6 @@ for zsh:
|
||||
|
||||
`fc -ln 0|grep -o "^cd [~/].*"|sed -e "s|cd ||" -e "s|~|$HOME|" -e 's|\\ | |' -e "s|/$||"|sort|uniq|while read -r d; do test -d "$d" && echo "$d|1|0"; done >> ~/z.lua`
|
||||
|
||||
|
||||
|
||||
These two scripts above can be used for pre-warm `.zlua` database.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user