A directory bookmarking system for the Fish shell. This is basically a direct port of Bashmarks, but for Fish.
-
Copy
fishmarks.fish
into your fish config directory (~/.config/fish
) -
Add the following line to your fish init file (
~/.config/fish/config.fish
):source ~/.config/fish/fishmarks.fish
-
Restart your fish shell and you're ready to go
cd ~/Desktop
s desk
cd ~/Downloads
s dl
j desk
ls -l (p dl)
j dl
l
l: list all your fishmarks
j <name>: jump to the directory associated with `<name>`
p <name>: print the directory associated with fishmark `<name>`
s <name>: save the current directory using `<name>`
By default, it's stored at ~/.config/fish/.fishmarks
. If you use multiple machines, my recommendation is to symlink it to a file in your Dropbox folder for cheap, easy synchronization of your fishmarks across machines.