Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deluan/dcd
Yet Another Fast Change Directory
https://github.com/deluan/dcd
Last synced: about 2 months ago
JSON representation
Yet Another Fast Change Directory
- Host: GitHub
- URL: https://github.com/deluan/dcd
- Owner: deluan
- License: gpl-2.0
- Created: 2013-08-18T04:26:32.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-09-22T03:49:01.000Z (over 7 years ago)
- Last Synced: 2024-10-14T10:22:32.383Z (3 months ago)
- Language: Pascal
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## DCD
### Yet Another Fast Change Directory based on the honorable NCD
DCD was modeled after Norton Change Directory (NCD). NCD appeared first in The Norton Utilities, Release 4, for DOS in 1987, published by Peter Norton. NCD was written by Brad Kingsbury.
This is a very old program I wrote for MS-DOS, and now I ported it to Mac OS X using FPC/Lazarus.
Maybe in the near future I'll make it multi-platform.### INSTALLATION
* Compile it with fpc (http://www.freepascal.org):
```
$ fpc dcd.pas
```* Copy it to /usr/local/bin
```
$ cp dcd /usr/local/bin
```* Add this to your ~/.profile:
```
dcd ()
{
new_path="$(/usr/local/bin/dcd ${@})";
case $? in
0) echo -e "\\033[31m${new_path}\\033[0m";
cd "${new_path}";
;;
1) return
;;
2) echo "dcd: directory '${@}' not found";
echo "Try \`dcd -r\` to update db.";
;;
esac
}
```