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.
- Host: GitHub
- URL: https://github.com/solidiquis/bookmark
- Owner: solidiquis
- License: mit
- Created: 2021-04-29T20:36:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T16:32:47.000Z (over 4 years ago)
- Last Synced: 2025-01-17T16:26:54.470Z (about 1 year ago)
- Topics: bash, shell-script, shell-scripting, zshell
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```