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.
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
}
To list all directories that were saved to ubahn, run this command:
ubahn list
To change the current directory to one saved in ubahn, run this command:
ubahn to <shortname>
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.
To remove a directory, run this command:
ubahn rm <shortname>
To remove all saved directories, run this command:
ubahn clear