diff --git a/alternatives for history|find|cd.md b/alternatives for history|find|cd.md index c547bab..a0e9158 100644 --- a/alternatives for history|find|cd.md +++ b/alternatives for history|find|cd.md @@ -115,9 +115,11 @@ fzf interactive searching🔎 :
-

+
+
+_**Install**_ :
+```bash
+apt install zoxide
+```
+
+Open ~/.bashrc and add
+```
+eval "$(zoxide init bash)"
+```
+_Restart terminal_
+
+_**Usage**_ :
+ ```bash
+z foo # cd into highest ranked directory matching foo
+z foo bar # cd into highest ranked directory matching foo and bar
+z foo / # cd into a subdirectory starting with foo
+
+z ~/foo # z also works like a regular cd command
+z foo/ # cd into relative path
+z .. # cd one level up
+z - # cd into previous directory
+
+zi foo # cd with interactive selection (using fzf)
+
+z foo