1.0.0 • Published 7 years ago

ubahn v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

ubahn

It is a (node.js) command line utility that helps you going everywhere in your computer using a terminal. It is based on teleport, a Haskell package that accomplishes the same task.

Installation

First, you need to install the Node.js plugins:

npm install --global ubahn

Then, to make the command executable, you need to add this to your .bashrc or .bash_profile or whatever you use:

function ubahn() {
  OUTPUT=`ubahn-wrapper $@`
  if [ $? -eq 42 ]
  then cd "$OUTPUT"
  else echo "$OUTPUT"
  fi
}

API

List Directories

To list all directories that were saved to ubahn, run this command:

ubahn list

To Directory

To change the current directory to one saved in ubahn, run this command:

ubahn to <shortname>

Add Directory

To add a new directory, run this command:

ubahn add <shortname> [directory path]

The short name cannot contain spaces. The directory path may be omitted. That will make the current directory to be added to ubahn.

Remove Directory

To remove a directory, run this command:

ubahn rm <shortname>

Remove all Directories

To remove all saved directories, run this command:

ubahn clear