Bookmark and jump to directories faster than a sailfish! Fishmarks is a clone of bashmarks for the Fish shell.
Branch: master
Clone or download
techwizrd Merge pull request #17 from naoki-iwami/fix_bookmark_name
fixed decide bookmark name if not given.
Latest commit 485f6b3 Oct 9, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information. Add AUTHORS file Oct 2, 2013
LICENSE first commit May 21, 2013 Check for Fish shell 2.0.0+ before installing Jul 8, 2013 fixed decide bookmark name if not given. Sep 30, 2016


Fishmarks is a clone of bashmarks for the Fish shell. Fishmarks is compatible with your existing bashmarks and bookmarks added using fishmarks are also available in bashmarks.


Automatic Installation

To install fishmarks automatically, paste the following in your terminal.

curl -L | fish

Please note, however, that you should never install things by piping untrusted "install" scripts downloaded through curl directly into your shell (be it bash or fish). Even if you read through the install script and think you understand it, you could be prone to a man-in-the-middle attack or any number of security vulnerabilities. While manual installations are tedious, they are recommended for any situations where security is a concern (and it should almost always be a concern).

Manual Installation

To install fishmarks manually:

  1. Clone fishmarks into ~/.fishmarks
$ git clone
  1. Source fishmarks/ in your by inserting the following into your ~/.config/fish/
# Load fishmarks (
. ~/.fishmarks/

Update to the latest version

To update to the latest version of fishmarks:

  1. Navigate to the directory where your fishmarks code is kept (It is located in ~/.fishmarks by default)
cd ~/.fishmarks
  1. Use git to fetch the latest version:
git fetch --all
  1. Remove any changes and force update to the latest version from the Git repository:
git reset --hard origin/master



s <bookmark_name> - Saves the current directory as "bookmark_name"
g <bookmark_name> - Goes (cd) to the directory associated with "bookmark_name"
p <bookmark_name> - Prints the directory associated with "bookmark_name"
d <bookmark_name> - Deletes the bookmark
l - Lists all available bookmarks'

Configuration Variables

All of these must be set before is sourced in your ~/.config/fish/

  • SDIRS - (default: ~/.sdirs) where all your bookmarks are kept.
  • NO_FISHMARKS_COMPAT_ALIASES - set this to turn off the bashmark-compatible aliases (e.g., p for print_bookmark)


[~]$ cd /var/www/
[/var/www]$ s webfolder
[/usr/local/lib]$ cd /usr/local/lib/
[/usr/local/lib]$ s locallib
[/usr/local/lib]$ l
locallib             /usr/local/lib
webfolder            /var/www
[/usr/local/lib]$ g webfolder


Have you noticed any bugs or issues with fishmarks? Do you have any features you would like to see added?

  1. Check on Github to see whether anyone else has encountered the same issue or has the same feature request. If someone someone has encountered the same issue or has the same feature request, comment to let me know that it affects you too.
  2. If no one has encountered the same issue, file an issue on Github with the "bug" label, your operating system version, fish shell version, clear steps describing how to reproduce the error. If no one has requested the same feature, file an issue on Github with the "enhancement" label and a brief, clear description of your feature and why it would make a great addition to fishmarks.
  3. Once you have filed the issue, if you would like to fix the issue or add the feature yourself, assign the issue to yourself on Github and fork the repository. Clone your fork and make your changes, commit them, and push them to Github. After you have pushed all your changes to Github, send me a merge request and comment on the issue to let me know that your merge request fixes the bug or adds the requested feature. Please make sure to write good commit messages and keep your history clean and understandable. Good commit messages and clean history make it easier for me to merge your changes and keep the history nice and useful.

I recommend the following guides on writing good commit messages:


Copyright 2013 Kunal Sarkhel

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.