Skip to content

Smolations/bashmarks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

Bashmarks

Bashmarks is a shell script that allows you to save and jump to commonly used directories.

Requirements

I forked this project in order to make it better for me. As such, I have no plans at this time to make them compatible with anything other than Bash on OS X. If I change my mind, I'll update this document.

Install

  1. git clone git://github.com/Smolations/bashmarks.git
  2. source /path/to/bashmarks.sh from within your ~.bash_profile or ~/.bashrc file

Shell Commands

s <bookmark_name> - Saves the current directory as "bookmark_name"
g <bookmark_name> - Goes (cd) to the directory associated with "bookmark_name"
d <bookmark_name> - Deletes the bookmark
l                 - Lists all available bookmarks

Example Usage

$ cd /var/www/

$ s webfolder
baskmark saved!

$ cd /usr/local/lib/

$ s locallib
baskmark saved!

$ l
 webfolder  /var/www
  locallib  /usr/local/lib

$ g webfolder

Where Bashmarks Are Saved

All of your bashmarks are saved in a file called ".sdirs" in your HOME directory. Please look, but don't touch. =]

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%