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

Digital Transformation through Agile and DevOps

How to Reset ADAX 8JC1+ 8

Hard reset Samsung galaxy

How to Reset Acer Liquid Z530

Hard reset Samsung galaxy

Source Control: The Best Superpower

XDEBUG on VS CODE on Big Sur

How to setup eSpeak TTS server for WebSpeech

User-Centric Web API Design

Why you should go to hackathons as a student and how to prepare for your first one

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

Shell Parameter Expansion

Your Linux Setup: A Guide to Distro-hopping

How to beautify your terminal with PowerLevel10k