How to use bookmarks in bash/zsh

Moving around your terminal effectively is going to make you more productive. Sometimes you need to quickly move between different projects or directories located in different places in your machine. For instance, maybe your code lives in ~/project/my-project, but the configuration of the server is in /etc/... Remembering locations is inefficient, and often they take longer to write. What if there is an easy, inexpensive solution in 4 lines of bash?

Example of how the autocomplete works with the proposed bookmarks.
How my bookmarks look like

Software engineer at Booking.com. I write about tech, mostly *nix, JS & Go. Also life stuff, learning languages and hobbies. https://threkk.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why I Chose Eleven Fifty Academy to Help Change My Career

DevOps for Business: Benefits, Key Principles and Best Practices

A quick guide to deploying your Python webapp on Google App Engine

NG19. Non-alternating ditransitives

Memcached installation and configuration on Ubuntu

Coding ARM on the Raspberry Pi

Now You Can Integrate LambdaTest With zipBoard

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alberto de Murga

Alberto de Murga

Software engineer at Booking.com. I write about tech, mostly *nix, JS & Go. Also life stuff, learning languages and hobbies. https://threkk.com

More from Medium

Quick macOS tip

Upgrade your Terminal experience with Zsh, Oh My Zsh, and powerlevel10k!

Learn VIM now — the easy way.

Why we should use tasks hour estimate