Skip to content

Bookmark long linux directories into keywords to be accessed faster.

Notifications You must be signed in to change notification settings

ethancrist/cd-shortcut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

cd-shortcut

Bookmark long linux directories into keywords to be accessed faster.

Installation

git clone https://github.com/ethancrist/cd-shortcut.git && \
cd-shortcut/init.sh && \
alias cds="source cds"

Usage

Add a shortcut
cds -add <key> <dir>
Use a shortcut
cds <key>
Remove a shortcut
cds -rm <key>
List all shortcuts
cds ls

Example

First, point a key to a directory

cds -add dev /my/very/long/nested/dev/directory/that/takes/years/to/type/

Now, typing

cds dev

is like typing

cd /my/very/long/nested/dev/directory/that/takes/years/to/type/

Footnotes

  • Keys automatically overwrite when using cds -add <key>
  • There is no practical limit to the keys you can store
  • This does not use symlink or any other native ubuntu folder linking
  • Reading and writing keys are extremely fast, as storage is microscopic
  • This application is solely bash therefore completely stateless, meaning it won't eat up memory

About

Bookmark long linux directories into keywords to be accessed faster.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages