The biggest problem with using the shell is that it is painful to jump to different directories. If only the shell could remember the directories you most frequently use and allow you to jump to them by only typing only a few characters of its name? This is what z does! However, z is written for bash. Fish users need not despair since there is z-fish.
Install and use
Clone the Github repository of z-fish. It has the z.fish
shell file that is the z
command.
Add this line to your ~/.config/fish/config.fish
. /path/to/z-fish/z.fish
cd around to all the directories you frequently use. This helps z-fish build its database. You can see this in the file ~/.z
Now, to jump to any directory just provide a substring of its name to z. For example: z foo
Tried with: fish 2.7.1 and Ubuntu 18.04 LTS