Skip to content

Commit

Permalink
Add README to use in Github. Main contents are copied from help messa…
Browse files Browse the repository at this point in the history
…ge and description in the original source
  • Loading branch information
icy committed Dec 31, 2010
1 parent a690c92 commit 5112be3
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
DESCRIPTION

Directory Bookmarks for BASH (c) 2009, Ira Chayut, Version 090927

DirB and its implementation in this file are the product of, and
copyrighted by Ira Chayut. You are granted a non-exclusive, royalty-free
license to use, reproduce, modify and create derivative works from DirB;
providing that credit is given to DirB as a source material.

The lastest version is available from: http://www.dirb.info/bashDirB.
Ira can be reached at ira@dirb.info.

Icy forked the source from http://dirb.info/ to customize the script
for his own purpose. You can modify, redistribute and create derivative
works from Icy's fork, providing that credit is given to DirB as a
source material.

USAGE

In your $HOME/.bashrc
source /path/to/this/dirb.sh

By default DirB will have the shell echo the current working directory out
to the title bars of Xterm windows. To disable this behavior, comment
out the following line in source file
PS1="\[\033]0;\w\007\]\t \!> "

OPERATIONS

s Save a directory bookmark
g go to a bookmark or named directory
p push a bookmark/directory onto the dir stack
r remove saved bookmark
d display bookmarked directory path
sl print the list of directory bookmarks

EXAMPLES

s xyz current directory is saved as xyz
s xyz ../../dir0/dir1 save relative directory as xyz
s xyz dir notes here save directory with comments
g xyz go to bookmark xyz or to path xyz
p xyz go to bookmark/directory xyz
and remember into the directory stack
p swap to two bookmarks
p +n rotate nth entry from top to top
p -n rotate nth entry from bottm to top
r xyz remove named bookmark
d xyz display directory name of bookmark xyz
sl -l long list
sl -p path list
sl "*x" list all of all bookmarks *x
sl -l "*x" long list all of all bookmarks *x

0 comments on commit 5112be3

Please sign in to comment.