diff --git a/FAQ.md b/FAQ.md index 4de430b..9c5bbe6 100644 --- a/FAQ.md +++ b/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.