Skip to content

Instantly share code, notes, and snippets.

@riturajborpujari
Created April 28, 2024 08:02
Show Gist options
  • Save riturajborpujari/096d8b704157a7ad3eb5f8237ba05b52 to your computer and use it in GitHub Desktop.
Save riturajborpujari/096d8b704157a7ad3eb5f8237ba05b52 to your computer and use it in GitHub Desktop.
directory bookmarks in shell
# save the present working directory into bookmarks file
alias dmk="pwd >> ~/.dmks"
# cd into a bookmarked directory by fzf selection
alias cdmk="cd \$(cat ~/.dmks | fzf)"
@ccoVeille
Copy link

Is recommended on dev.to, I would suggest you to take a look at zoxide

https://dev.to/ccoveille/comment/2eoc5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment