xviubu / bashmarks

Directory bookmarks for the shell

Home Page:http://www.huyng.com/bashmarks-directory-bookmarks-for-the-shell/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Install

  1. git clone git://github.com/huyng/bashmarks.git
  2. make install
  3. source ~/.local/bin/bashmarks.sh from within your ~.bash_profile or ~/.bashrc file

Shell Commands

bms <bookmark_name> - Saves the current directory as "bookmark_name"
bmg <bookmark_name> - Goes (cd) to the directory associated with "bookmark_name"
bmp <bookmark_name> - Prints the directory associated with "bookmark_name"
bmd <bookmark_name> - Deletes the bookmark
bml                 - Lists all available bookmarks

Example Usage

$ cd /var/www/
$ bms webfolder
$ cd /usr/local/lib/
$ bms locallib
$ bml
$ bmg web<tab>
$ bmg webfolder

Where Bashmarks are stored

All of your directory bookmarks are saved in a file called ".sdirs" in your HOME directory.

About

Directory bookmarks for the shell

http://www.huyng.com/bashmarks-directory-bookmarks-for-the-shell/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Shell 100.0%