Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

babarot/bashmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a shell script that allows you to save and jump to commonly used directories. Now supports tab completion.
Please try it for a day, and you will find it very effective.

Features

  • a special directory bookmarker on bash like web browser
  • supports 3.2 or more bash version

Installation

$ git clone git://github.com/b4b4r07/bashmark.git
$ make install

Enable bashmark.sh requires restart your bash

Usage

How to use bashmark

$ bashmark | less

show - display your bookmark

$ show
bin            ~/.local/bin
work           ~/work

reg - save

$ pwd
/home/testuser/work/myproject
$ reg
$ show
bin            ~/.local/bin
work           ~/work
myproject      ~/work/myproject
$ reg abc
bin            ~/.local/bin
work           ~/work
myproject      ~/work/myproject
abc            ~/work/myproject

go - jump to registered directories

$ pwd
/home/testuser
$ go abc
$ pwd
/home/testuser/work/myproject

p - print to registered directories (look like 'go' command)

$ p bin
/home/testuser/.local/bin

del

$ del myproject abc
$ show
bin            ~/.local/bin
work           ~/work

License

MIT license. Copyright (c) 2013 b4b4r07

About

Directory bookmarks for the shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages