Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
xbm - eXtra Bash Marks, it is a tool work like as bookmark on bash/shell environment.
Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
README.vi.md
install.sh
xbm
xcd.sh

README.md

xbm (1)

xbm stands for eXtra Bash Marks, it is a tool work like as bookmark on bash/shell environment.

Features

  • Add/delete/print/list and jump (cd) bookmark easily
  • Tab is supported to auto-complete

Usage

    xbm [ -h (help) ]           # To get help
        [ -l (list) ]           # List all bookmark records
        [ -a (add) [<name>] ]   # Add new bookmark record from current path with name is optional
        [ -d (delete) <name> || -da (delete_all) ]  # Delete record by name or delete all records
        [ -p (print) <name> ]   # Print full-path of bookmark by name
or
    xcd <name>                  # Jump (cd) by bookmark name

Installation

git clone https://github.com/xuta/xbm.git
cd xbm/
chmod +x install.sh
[sudo] ./install.sh
  • If run script install.sh without sudo, xbm will be installed for user who ran script.
  • If run script with sudo, it's installed but not enable for all users (just enable for root). So if you want to use it with your account, append the line at below into ~/.bashrc or ~/.bash_profile
source /usr/share/xbm/xcd.sh

Note

  • Tested work well with bash on MAC OS X and Debian.
  • To work well with bash of MAC OS X, xbm is using some stupid commands

BRANCH

  • adding: branch support more features when add new bookmark, [TAB] to auto-complete still supported
    • Usage: xbm -a <full_path> <name>
    • Example: xbm -a /usr/local/share/ share
Something went wrong with that request. Please try again.