An open API service indexing awesome lists of open source software.

https://github.com/solidiquis/bookmark

Bookmark frequently visited directories without bloating your shell config with a bunch of cd aliases.
https://github.com/solidiquis/bookmark

bash shell-script shell-scripting zshell

Last synced: 6 months ago
JSON representation

Bookmark frequently visited directories without bloating your shell config with a bunch of cd aliases.

Awesome Lists containing this project

README

          

# Bookmark

I'm a neat freak when it comes to my configs and I never liked having a bunch of `cd` aliases in my shell startup configuration file.

## Installation
`cd` into the directory where you want to place the script and run:
`curl https://raw.githubusercontent.com/solidiquis/bookmark/master/bookmark -o bookmark`

I'd recommend either putting this script in your `$PATH` or source it into your shell's config.

Example in `.zshrc`:
```
source $PATH_TO_SCRIPT/bookmark --source_only
```

## Usage
List bookmarks: `lsbm`
```
$ lsbm
dotfiles=/Users/benjamin/dotfiles
code=/Users/benjamin/Desktop/Code
home=/Users/benjamin
bash_reference=/Users/benjamin/Desktop/Code/Bash
wf=/Users/benjamin/Desktop/Code/Ruby/wefunder
```

Make bookmark: `mkbm `
```
# Bookmarking your current working directory
$ mkbm my_desktop
desktop added.
```

Jump to bookmark: `jbm `
```
$ jbm my_desktop
```

Remove bookmark: `rmbm `
```
$ rmbm my_desktop
```