Skip to content

bachya/bashmarks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

This fork of bashmarks adds several key enhancements and aims to be an active and up-to-date replacement for the original (which appears to no longer be maintained).

Install

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

Command Prefix

Because the aliases that Bashmarks uses might already be in use on your system, Bashmarks allows you to specify a "command prefix":

export BASHMARKS_PREFIX="bm"

If this is specified, the prefix must be used before any Bashmarks command; if it is not specified, the aliases can be used as-is.

Shell Commands

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

Example Usage

$ cd /var/www/
$ <command_prefix>s webfolder
$ cd /usr/local/lib/
$ <command_prefix>s locallib
$ <command_prefix>l
$ <command_prefix>g web<tab>
$ <command_prefix>g webfolder

Storage

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

About

Directory bookmarks for the shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%