XCD

Use shortcuts for your directories

Usability

For all the console cowboys who are tired of permanent entering of directory names whose length resembles rather a highway.

Usage

xcd -a <name>   adds the current directory to the list of aliases as name

xcd <name>   go to directory known as name, if not exists fall back to cd

xcd   lists the aliases

Removing or editing aliases can be done by editing /etc/xcd.list where they are stored by default.

Files

xcd.c - C source
xcd - Linux ELF binary
xcd.sh - function definition for /etc/profile.d

Installation

Download xcd.c and compile xcd, or download xcd binary, and put it to /usr/bin/. Download xcd.sh and put it to /etc/profile.d/ (at least in Red Hat, not sure if other distros have it there too). Logout. Log in. "set" should now show "xcd" defined as a command variable. Your shell should now accept it too.